{"name":"@tapjs/after-each","version":"4.3.11","description":"a built-in tap extension for t.afterEach()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"},"selfLink":false},"type":"module","main":"./dist/commonjs/index.js","module":"./dist/esm/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","dependencies":{"function-loop":"^4.0.0"},"peerDependencies":{"@tapjs/core":"4.5.9"},"tap":{"typecheck":false},"repository":{"type":"git","url":"git+ssh://git@github.com/tapjs/tapjs.git","path":"src/after-each"},"homepage":"https://github.com/tapjs/tapjs/tree/main/src/after-each#readme","bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"keywords":["tapjs plugin"],"engines":{"node":"20 || >=22"},"gitHead":"88f4b97ec068d0ab6908f472706f57d273b32ba9","_id":"@tapjs/after-each@4.3.11","_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-j7Hm7/tzO9JnjJ7lqFNpyoKFUqsAYgn5Dw+ecJrPyTb/L+ybSFL6qD/k1eCw+mfVsNizzYc5FDMQ5u0FDDkvmg==","shasum":"31bf94cf3d4f33fba3fd99e69dda90256317f3b9","tarball":"http://registry-npm.ywwl.com/@tapjs/after-each/download/@tapjs/after-each-4.3.11.tgz","fileCount":13,"unpackedSize":18254,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAiQFll69NLLFR6zAT3GgrNoOQdf8Ra7qdMBpgFM0aAhAiB0jpO4Ijd9QsHzfAWHQcYeDDSdjJ5eiIQ0basCR/kjKQ=="}],"size":4158,"noattachment":false,"key":"/@tapjs/after-each/-/@tapjs/after-each-4.3.11.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/after-each_4.3.11_1785178338840_0.7920999858057607"},"_hasShrinkwrap":false,"readme":"# `@tapjs/after-each`\n\nA default tap plugin providing `t.afterEach()`.\n\n## USAGE\n\nThis plugin is installed with tap by default. If you had\npreviously removed it, you can `tap plugin add @tapjs/after-each` to\nbring it back.\n\n```ts\nimport t from 'tap'\nt.afterEach(t => {\n  // this will run after each child test, all of their child\n  // tests, and so on\n  // the parameter is the child test that just ended.\n})\n```\n\nIf the method returns a promise, it will be awaited before moving\non to the next test.\n\nThe `afterEach` method is called for _all_ child tests, not just\ndirect children. \"Closer\" ancestor `afterEach` methods are called\nbefore further ancestors.\n\nFor example, this test:\n\n```js\nimport t from 'tap'\nt.afterEach(t => {\n  console.error('root after each', t.name)\n})\n\nt.test('parent test', t => {\n  t.afterEach(t => {\n    console.error('parent after each', t.name)\n  })\n  t.test('child test', t => t.end())\n  t.end()\n})\n```\n\nwill print:\n\n```\nparent after each child test\nroot after each child test\nroot after each parent test\n```\n","publish_time":1785178338969,"_cnpm_publish_time":1785178338969,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}