Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
add jest-circus
Browse files Browse the repository at this point in the history
this solves the issue of seeing two failures for each test in test output when beforeAll fails

jestjs/jest#6695
  • Loading branch information
levity committed Mar 27, 2019
1 parent 557b44a commit 1c83dae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"html-webpack-plugin": "^2.30.1",
"husky": "^0.14.3",
"jest": "^24.5.0",
"jest-circus": "^24.5.0",
"lint-staged": "^7.1.0",
"prettier": "^1.12.1",
"sane": "^4.0.3",
Expand Down
3 changes: 2 additions & 1 deletion test/config/jestDefaultConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"test"
],
"setupFilesAfterEnv": ["<rootDir>/test/setup-test.js"],
"testPathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/test/integration/"]
"testPathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/test/integration/"],
"testRunner": "jest-circus/runner"
}
23 changes: 23 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4794,6 +4794,29 @@ jest-changed-files@^24.5.0:
execa "^1.0.0"
throat "^4.0.0"

jest-circus@^24.5.0:
version "24.5.0"
resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-24.5.0.tgz#1495f9cc53f7d09381626001893cb9d12633bfa9"
integrity sha512-meGSoAA5rMv+93Wz8KY3FZcJ7aEbXqrgI2F/emPRCVzGXOvR8oQl8GvYBrIbpJW7G0vwnVSjLQMeTMHs1geu5g==
dependencies:
"@babel/traverse" "^7.1.0"
"@jest/environment" "^24.5.0"
"@jest/test-result" "^24.5.0"
"@jest/types" "^24.5.0"
"@types/node" "*"
chalk "^2.0.1"
co "^4.6.0"
expect "^24.5.0"
is-generator-fn "^2.0.0"
jest-each "^24.5.0"
jest-matcher-utils "^24.5.0"
jest-message-util "^24.5.0"
jest-snapshot "^24.5.0"
jest-util "^24.5.0"
pretty-format "^24.5.0"
stack-utils "^1.0.1"
throat "^4.0.0"

jest-cli@^24.5.0:
version "24.5.0"
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.5.0.tgz#598139d3446d1942fb7dc93944b9ba766d756d4b"
Expand Down

0 comments on commit 1c83dae

Please sign in to comment.