
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@wordpress/e2e-tests
Advanced tools
End-To-End (E2E) tests for WordPress.
Note that there's currently an ongoing project to migrate E2E tests to Playwright instead. This package is deprecated and will only accept bug fixes until fully migrated.
Install the module
npm install @wordpress/e2e-tests --save-dev
The following commands are available on the Gutenberg repo:
{
"test:e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js",
"test:e2e:debug": "wp-scripts --inspect-brk test-e2e --config packages/e2e-tests/jest.config.js --puppeteer-devtools",
"test:e2e:watch": "npm run test:e2e -- --watch"
}
npm run test:e2e
npm run test:e2e:watch
npm run test:e2e -- packages/e2e-test/<path_to_test_file>
# Or, in order to watch for changes:
npm run test:e2e:watch -- packages/e2e-test/<path_to_test_file>
Makes e2e tests available to debug in a Chrome Browser.
npm run test:e2e:debug
After running the command, tests will be available for debugging in Chrome by going to chrome://inspect/#devices and clicking inspect under the path to /test-e2e.js.
vscodeDebugging in a Chrome browser can be replaced with vscode's debugger by adding the following configuration to .vscode/launch.json:
{
"type": "node",
"request": "launch",
"name": "Debug current e2e test",
"program": "${workspaceFolder}/node_modules/@wordpress/scripts/bin/wp-scripts.js",
"args": [
"test-e2e",
"--config=${workspaceFolder}/packages/e2e-tests/jest.config.js",
"--verbose=true",
"--runInBand",
"--watch",
"${file}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"trace": "all"
}
This will run jest, targetting the spec file currently open in the editor. vscode's debugger can now be used to add breakpoints and inspect tests as you would in Chrome DevTools.
Note: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.
This is an individual package that's part of the Gutenberg project. The project is organized as a monorepo. It's made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to npm and used by WordPress as well as other software projects.
To find out more about contributing to this package or Gutenberg as a whole, please read the project's main contributor guide.

FAQs
Test plugins and mu-plugins for E2E tests in WordPress.
The npm package @wordpress/e2e-tests receives a total of 814 weekly downloads. As such, @wordpress/e2e-tests popularity was classified as not popular.
We found that @wordpress/e2e-tests demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.