Skip to content

Commit

Permalink
Use jest-light-runner/in-band
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Aug 29, 2022
1 parent d0c15ec commit ba7d415
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
40 changes: 29 additions & 11 deletions jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,39 @@ if (!isProduction) {
}

const config = {
projects: [
{
displayName: "Format Test",
testMatch: ["<rootDir>/tests/format/**/jsfmt.spec.js"],
runner: "jest-light-runner",
},
{
displayName: "Unit Test",
testMatch: ["<rootDir>/tests/unit/**/*.js"],
runner: "jest-light-runner",
},
{
displayName: "Integration Test",
testMatch: ["<rootDir>/tests/integration/__tests__/**/*.js"],
runner: "jest-light-runner/in-band",
},
].map((projectConfig) => ({
...projectConfig,
snapshotSerializers: [
"jest-snapshot-serializer-raw",
"jest-snapshot-serializer-ansi",
],
snapshotFormat: {
escapeString: false,
printBasicPrototype: false,
},
testPathIgnorePatterns,
})),
setupFiles: [
"<rootDir>/tests/config/format-test-setup.js",
"<rootDir>/tests/integration/integration-test-setup.js",
],
runner: "jest-light-runner",
snapshotSerializers: [
"jest-snapshot-serializer-raw",
"jest-snapshot-serializer-ansi",
],
testMatch: [
"<rootDir>/tests/format/**/jsfmt.spec.js",
"<rootDir>/tests/integration/__tests__/**/*.js",
"<rootDir>/tests/unit/**/*.js",
],
testPathIgnorePatterns,
testMatch: [],
collectCoverage: ENABLE_CODE_COVERAGE,
collectCoverageFrom: ["<rootDir>/src/**/*.js", "<rootDir>/bin/**/*.js"],
coveragePathIgnorePatterns: [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"esm-utils": "4.1.0",
"execa": "6.1.0",
"jest": "29.0.1",
"jest-light-runner": "0.4.0",
"jest-light-runner": "fisker/jest-light-runner#in-band-runner",
"jest-snapshot-serializer-ansi": "1.0.0",
"jest-snapshot-serializer-raw": "1.2.0",
"jest-watch-typeahead": "2.1.1",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5197,9 +5197,9 @@ __metadata:
languageName: node
linkType: hard

"jest-light-runner@npm:0.4.0":
"jest-light-runner@fisker/jest-light-runner#in-band-runner":
version: 0.4.0
resolution: "jest-light-runner@npm:0.4.0"
resolution: "jest-light-runner@https://github.com/fisker/jest-light-runner.git#commit=8f8bec4a2318036992c2c2ef5304688f0f72d937"
dependencies:
"@jest/expect": ^29.0.1
jest-circus: ^29.0.1
Expand All @@ -5210,7 +5210,7 @@ __metadata:
supports-color: ^9.2.1
peerDependencies:
jest: ^27.5.0 || ^28.0.0 || ^29.0.0
checksum: 8ad449a830bd1b039d505baa40881e6e7d1badc8698d844c456c156f820bf0a4b58563ef07678dbed368ca968262bccd28ba756a3d4dc1a8e19f49a57bf82775
checksum: 7753d49b331e81d9c0a6aee50627f4aa79193aea5a15f1d48eeb5e2374b84b1607f5d3e3bb2ad39511d7c8723d80ce03d84e37b49ea05623d137e08eba0339ae
languageName: node
linkType: hard

Expand Down Expand Up @@ -7000,7 +7000,7 @@ __metadata:
import-meta-resolve: 2.1.0
jest: 29.0.1
jest-docblock: 29.0.0
jest-light-runner: 0.4.0
jest-light-runner: "fisker/jest-light-runner#in-band-runner"
jest-snapshot-serializer-ansi: 1.0.0
jest-snapshot-serializer-raw: 1.2.0
jest-watch-typeahead: 2.1.1
Expand Down

0 comments on commit ba7d415

Please sign in to comment.