
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@90poe/jest-performant-warnings-stats-reporter
Advanced tools
A flexible jest reporter that provides ability to show statistics of warnings and group them
This is a custom jest reporter that recursively collects all warnings while tests run and notifying user afterwards improving performance.
We had problems with:
yarn add @90poe/jest-performant-warnings-stats-reporter --dev
or
npm install @90poe/jest-performant-warnings-stats-reporter --save-dev
In your jest config add the following entry:
{
reporters: [
[
'@90poe/jest-performant-warnings-stats-reporter',
{
showSlowest: false,
maxSlowTests: 5,
warnOnSlowerThan: 1000,
showWarningSummary: false,
warningsConfig: [
{
name: 'act(...) warnings',
regex: /act(...)/im,
},
{
name: 'React Key Issues',
regex: /Encountered two children with the same key/im,
},
// ...
],
},
],
],
}
@90poe/jest-performant-warnings-stats-reporter
configuration is based on Jest, available options are shown below.
Option | Description | type | Default value |
---|---|---|---|
showSlowest | true / false flag whether to show slowest tests or not | boolean | false |
maxSlowTests | quantity of slowest tests to show, dependant on showSlowest flag | number | 5 |
warnOnSlowerThan | a limit in milliseconds, used to identify slow tests | number | 400 |
showWarningSummary | true / false flag whether to show detailed information on warnings | boolean | false |
warningsConfig | an array of objects with name and regexp props, where name is title for a warning and regexp is regular expression used to match the console warning. Dependant on showWarningSummary flag | Array<{ name: string , regexp: RegExp }> | [] |
Using hyperfine for running 130 test suites in real world project, we can see advantage in performance comparing with:
FAQs
A flexible jest reporter that provides ability to show statistics of warnings and group them
The npm package @90poe/jest-performant-warnings-stats-reporter receives a total of 4 weekly downloads. As such, @90poe/jest-performant-warnings-stats-reporter popularity was classified as not popular.
We found that @90poe/jest-performant-warnings-stats-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 32 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.