{"name":"@tapjs/after-each","version":"4.3.1","keywords":["tapjs plugin"],"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","_id":"@tapjs/after-each@4.3.1","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"homepage":"https://github.com/tapjs/tapjs/src/after-each#readme","bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"tap":{"typecheck":false},"dist":{"shasum":"28b2c78c88c4a37c7809eb75896f2090cf8fe388","tarball":"http://registry-npm.ywwl.com/@tapjs/after-each/download/@tapjs/after-each-4.3.1.tgz","fileCount":13,"integrity":"sha512-kgRbmhKisIl31FsCxFkDmZLNj0qCdNte0aarVLsaFq1LVJOtpITdBfnuiKigrLj4Go9XiASmIpGrU8h1uYF2Xw==","signatures":[{"sig":"MEUCIQDh8UOSjN6pH01QzuK1jWu/UPliLS3TGW/wRxOzXGmHDgIgdYGu30AUSWWgxVlNanljXfhcgnXLCRz2aPcTFDwJkRA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18220,"size":4142,"noattachment":false,"key":"/@tapjs/after-each/-/@tapjs/after-each-4.3.1.tgz"},"main":"./dist/commonjs/index.js","tshy":{"main":true,"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","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":"8dfae92d82d41448b15af6437b12291ce09661d4","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"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"repository":{"url":"git+ssh://git@github.com/tapjs/tapjs.git","path":"src/after-each","type":"git"},"_npmVersion":"11.9.0","description":"a built-in tap extension for t.afterEach()","directories":{},"_nodeVersion":"24.4.1","dependencies":{"function-loop":"^4.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"@tapjs/core":"4.4.1"},"_npmOperationalInternal":{"tmp":"tmp/after-each_4.3.1_1770334394534_0.7260909610802231","host":"s3://npm-registry-packages-npm-production"},"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":1770334394759,"_cnpm_publish_time":1770334394759,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}