mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 13:40:06 +00:00
Fail tests on console logs
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import "@bitwarden/ui-common/setup-jest";
|
||||
import failOnConsole from "jest-fail-on-console";
|
||||
|
||||
import { addCustomMatchers } from "@bitwarden/common/spec";
|
||||
|
||||
addCustomMatchers();
|
||||
failOnConsole();
|
||||
|
||||
// Add chrome storage api
|
||||
const QUOTA_BYTES = 10;
|
||||
|
||||
7
package-lock.json
generated
7
package-lock.json
generated
@@ -150,6 +150,7 @@
|
||||
"html-webpack-plugin": "5.6.3",
|
||||
"husky": "9.1.7",
|
||||
"jest-diff": "29.7.0",
|
||||
"jest-fail-on-console": "3.3.1",
|
||||
"jest-junit": "16.0.0",
|
||||
"jest-mock-extended": "3.0.7",
|
||||
"jest-preset-angular": "14.1.1",
|
||||
@@ -23243,6 +23244,12 @@
|
||||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/jest-fail-on-console": {
|
||||
"version": "3.3.1",
|
||||
"resolved": "https://registry.npmjs.org/jest-fail-on-console/-/jest-fail-on-console-3.3.1.tgz",
|
||||
"integrity": "sha512-dmq/dmh5OBgJlD1MJdpznzwFQP8S7msf3ghTGWQLGhagWwHKzGtqXza76nuJUKOK7BdwqcTK6CCE49Xxv4ckUQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/jest-get-type": {
|
||||
"version": "29.6.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz",
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
"html-webpack-plugin": "5.6.3",
|
||||
"husky": "9.1.7",
|
||||
"jest-diff": "29.7.0",
|
||||
"jest-fail-on-console": "3.3.1",
|
||||
"jest-junit": "16.0.0",
|
||||
"jest-mock-extended": "3.0.7",
|
||||
"jest-preset-angular": "14.1.1",
|
||||
|
||||
Reference in New Issue
Block a user