{"_id":"@tapjs/after-each@4.3.13","tap":{"typecheck":false},"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"dist":{"shasum":"9338549d24d57b49f9fce635209e75a46b5221b8","tarball":"http://registry-npm.ywwl.com/@tapjs/after-each/download/@tapjs/after-each-4.3.13.tgz","fileCount":13,"integrity":"sha512-5X+QavkGT7yZ+w5nAgFH0kH6PgmjF7cVj30ebFSkezFpTpDlRjn5ORllq8bYAadcmW/lGgh7tiMWK94nDlF8EA==","signatures":[{"sig":"MEQCIAYck9NZUyiPmugjYxGZt9uQzaujSxITng8sxoQwyOXvAiB88dPOLo/9no/vV5btizJfap9+e93zH2RXQpu+ghryxw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD/XXFN76NfcCavWwIi3xR7v6pRynxD+m2zVyuuy4qkPQIhAMQdMsK/Hn3GDPHUGakp+vqsyqVfN7eO/dboBn08KoO8"}],"unpackedSize":18254,"size":4159,"noattachment":false,"key":"/@tapjs/after-each/-/@tapjs/after-each-4.3.13.tgz"},"main":"./dist/commonjs/index.js","name":"@tapjs/after-each","tshy":{"main":true,"exports":{".":"./src/index.ts","./package.json":"./package.json"},"selfLink":false},"type":"module","types":"./dist/commonjs/index.d.ts","author":{"name":"Isaac Z. Schlueter"},"module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"6874ffcc3e671f64b5dbabdd25b26904d3e2ed84","license":"BlueOak-1.0.0","scripts":{"snap":"tap","test":"tap","format":"prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache","prepare":"tshy","presnap":"npm run prepare","pretest":"npm run prepare","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"version":"4.3.13","_npmUser":{"name":"isaacs","email":"i@izs.me"},"homepage":"https://github.com/tapjs/tapjs/tree/main/src/after-each#readme","keywords":["tapjs plugin"],"repository":{"url":"git+ssh://git@github.com/tapjs/tapjs.git","path":"src/after-each","type":"git"},"_npmVersion":"12.2.0","description":"a built-in tap extension for t.afterEach()","directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"_nodeVersion":"26.5.0","dependencies":{"function-loop":"^4.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"@tapjs/core":"4.6.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/after-each_4.3.13_1793744396783_0.646247549646289"},"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":1793744396875,"_cnpm_publish_time":1793744396875,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}