
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@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 100,855 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.

Research
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain