
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
jest-preset-preact
Advanced tools
Jest preset containing all required configuration for writing tests for preact.
Features:
h()
react
imports to point to preact/compat
VNodes
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
The npm package jest-preset-preact receives a total of 8,116 weekly downloads. As such, jest-preset-preact popularity was classified as popular.
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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.