![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.