1
0
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:
Hinton
2025-02-26 13:39:18 +01:00
parent cb028eadb5
commit 891ee9d6e7
3 changed files with 11 additions and 0 deletions

View File

@@ -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
View File

@@ -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",

View File

@@ -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",