Skip to content

Commit

Permalink
fix: jest-fail-on-console (#4286)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad authored Dec 29, 2024
1 parent 360ac58 commit 53d5512
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"http-proxy-middleware": "^2.0.3",
"install": "^0.13.0",
"jest-canvas-mock": "^2.4.0",
"jest-fail-on-console": "^3.0.1",
"jest-worker": "^27.5.1",
"js-sha3": "0.8.0",
"lodash": "^4.17.21",
Expand All @@ -88,6 +87,9 @@
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/ui/lib/fileMock.js",
"\\.(css|less)$": "<rootDir>/ui/lib/fileMock.js"
},
"setupFilesAfterEnv": [
"<rootDir>/setup-jest.ts"
],
"modulePathIgnorePatterns": [
"<rootDir>/dist/"
],
Expand Down Expand Up @@ -118,6 +120,7 @@
"eslint": "^8.48.0",
"eslint-plugin-import": "^2.25.4",
"jest": "^27.3.1",
"jest-fail-on-console": "^3.3.1",
"jest-styled-components": "^7.0.4",
"jsdom": "^16.6.0",
"parcel": "^2.13.3",
Expand Down
3 changes: 3 additions & 0 deletions setup-jest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import failOnConsole from 'jest-fail-on-console'

failOnConsole()
10 changes: 4 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5944,12 +5944,10 @@ jest-environment-node@^27.5.1:
jest-mock "^27.5.1"
jest-util "^27.5.1"

jest-fail-on-console@^3.0.1:
version "3.0.1"
resolved "https://registry.npmjs.org/jest-fail-on-console/-/jest-fail-on-console-3.0.1.tgz"
integrity sha512-1811WQIY9lZN9wGkp7S6y69vw9+u6I21dmnRwXo6jSuF6Xv5OlN4msNCeKEVlc/C2H5N8dqLKuQlTAzQZ0mJlw==
dependencies:
chalk "^4.1.0"
jest-fail-on-console@^3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/jest-fail-on-console/-/jest-fail-on-console-3.3.1.tgz#7d17e3a155cd0452b5be0d0906b6cb35e8594000"
integrity sha512-dmq/dmh5OBgJlD1MJdpznzwFQP8S7msf3ghTGWQLGhagWwHKzGtqXza76nuJUKOK7BdwqcTK6CCE49Xxv4ckUQ==

jest-get-type@^27.5.1:
version "27.5.1"
Expand Down

0 comments on commit 53d5512

Please sign in to comment.