
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
@tapjs/before-each
Advanced tools
@tapjs/before-eachA default tap plugin providing t.beforeEach().
This plugin is installed with tap by default. If you had
previously removed it, you can tap plugin add @tapjs/before-each to
bring it back.
import t from 'tap'
t.beforeEach(t => {
// this will run before each child test, all of their child
// tests, and so on
// the parameter is the child test that is about to start.
})
If the method returns a promise, it will be awaited before moving on to the next test.
The beforeEach method is called for all child tests, not just
direct children. "Closer" ancestor beforeEach methods are called
after further ancestors.
For example, this test:
import t from 'tap'
t.beforeEach(t => {
console.error('root before each', t.name)
})
t.test('parent test', t => {
t.beforeEach(t => {
console.error('parent before each', t.name)
})
t.test('child test', t => t.end())
t.end()
})
will print:
root before each parent test
root before each child test
parent before each child test
FAQs
a built-in tap extension for t.beforeEach()
The npm package @tapjs/before-each receives a total of 177,018 weekly downloads. As such, @tapjs/before-each popularity was classified as popular.
We found that @tapjs/before-each demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.