{"name":"@tapjs/after-each","version":"4.0.1","description":"a built-in tap extension for t.afterEach()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/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 . --loglevel 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.0.1"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/spawn#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"_id":"@tapjs/after-each@4.0.1","gitHead":"532287f65d814c7cb7872bf84b3d86b17d900e43","_nodeVersion":"22.10.0","_npmVersion":"11.0.0","dist":{"integrity":"sha512-YkVvfszKTLm57Bju8ET4hKCPXVsd9OCkWUBD8h8g0ZrX61r99Cf6jw/D4eTppPcWryOwE7WO/7aj/toBTp2W/Q==","shasum":"6c87cdf81f38eb1ef7cf3e98d55ea5bab39139bf","tarball":"http://registry-npm.ywwl.com/@tapjs/after-each/download/@tapjs/after-each-4.0.1.tgz","fileCount":13,"unpackedSize":18182,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICi+AzP0q9tq0mvjenwo5gcW6ibArM3yXekDV+Q9gr25AiEAqycgiRp5TxwSb012BP0rw3uYKUBLBNDlh0roBctSrAM="}],"size":4145,"noattachment":false,"key":"/@tapjs/after-each/-/@tapjs/after-each-4.0.1.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/after-each_4.0.1_1740007039024_0.7890774515174539"},"_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":1740007039200,"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"_cnpm_publish_time":1740007039200,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}