
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
jest-preset-preact
Advanced tools
Jest preset containing all required configuration for writing tests for preact.
Features:
h()react imports to point to preact/compatVNodes in snapshots.css, .less, .sass/scss, etc)Install it via npm or yarn:
npm install --save-dev jest-preset-preact
# or via yarn
yarn add -D jest-preset-preact
...and add the preset to your jest.config.js file.
// jest.config.js
module.exports = {
preset: 'jest-preset-preact',
};
You can override the default Babel config by providing your own Babel config file:
// babel.config.js
module.exports = {
env: {
test: {
plugins: [
[
"@babel/plugin-transform-react-jsx",
{
runtime: "automatic",
importSource: "preact"
}
]
]
}
}
}
This, for example, would enable the runtime JSX transform instead of the classic.
MIT, see the LICENSE file.
FAQs
Jest preset for testing Preact apps
We found that jest-preset-preact demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.