Fix testPathPatterns when config is in subdirectory #13442
Annotations
10 errors and 2 warnings
run tests:
e2e/__tests__/globalSetup.test.ts#L92
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
- [ 'pass' ]
+ TestPathPatterns { patterns: [ 'pass' ] }
true
at Object.toBe (e2e/__tests__/globalSetup.test.ts:92:25)
|
run tests:
e2e/runJest.ts#L155
Can't parse JSON.
ERROR: SyntaxError Unexpected end of JSON input
STDOUT:
STDERR: No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In /Users/runner/work/jest/jest/e2e/global-setup
4 files checked across 2 projects. Run with `--verbose` for more details.
Pattern: project-1 - 0 matches
at json (e2e/runJest.ts:155:11)
at Object.<anonymous> (e2e/__tests__/globalSetup.test.ts:110:29)
|
run tests:
e2e/__tests__/globalSetup.test.ts#L147
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
- [ 'pass' ]
+ TestPathPatterns { patterns: [ 'pass' ] }
true
at Object.toBe (e2e/__tests__/globalSetup.test.ts:147:25)
|
run tests:
e2e/__tests__/executeTestsOnceInMpr.ts#L51
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.toBe (e2e/__tests__/executeTestsOnceInMpr.ts:51:20)
|
run tests:
e2e/__tests__/showConfig.test.ts#L43
expect(received).toMatchSnapshot()
Snapshot name: `--showConfig outputs config info and exits 1`
- Snapshot - 1
+ Received + 4
@@ -141,11 +141,14 @@
"snapshotFormat": {
"escapeString": false,
"printBasicPrototype": false
},
"testFailureExitCode": 1,
- "testPathPatterns": [],
+ "testPathPatterns": {
+ "patterns": [],
+ "type": "TestPathPatterns"
+ },
"testSequencer": "<<REPLACED_JEST_PACKAGES_DIR>>/jest-test-sequencer/build/index.js",
"updateSnapshot": "none",
"useStderr": false,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watch": false,
at Object.toMatchSnapshot (e2e/__tests__/showConfig.test.ts:43:18)
|
run tests:
e2e/__tests__/showConfig.test.ts#L43
expect(received).toMatchSnapshot()
Snapshot name: `--showConfig outputs config info and exits 1`
- Snapshot - 1
+ Received + 4
@@ -141,11 +141,14 @@
"snapshotFormat": {
"escapeString": false,
"printBasicPrototype": false
},
"testFailureExitCode": 1,
- "testPathPatterns": [],
+ "testPathPatterns": {
+ "patterns": [],
+ "type": "TestPathPatterns"
+ },
"testSequencer": "<<REPLACED_JEST_PACKAGES_DIR>>/jest-test-sequencer/build/index.js",
"updateSnapshot": "none",
"useStderr": false,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watch": false,
at Object.toMatchSnapshot (e2e/__tests__/showConfig.test.ts:43:18)
|
run tests:
e2e/__tests__/executeTestsOnceInMpr.ts#L51
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.toBe (e2e/__tests__/executeTestsOnceInMpr.ts:51:20)
|
run tests:
e2e/__tests__/globalSetup.test.ts#L92
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
- [ 'pass' ]
+ TestPathPatterns { patterns: [ 'pass' ] }
true
at Object.toBe (e2e/__tests__/globalSetup.test.ts:92:25)
|
run tests:
e2e/runJest.ts#L155
Can't parse JSON.
ERROR: SyntaxError Unexpected end of JSON input
STDOUT:
STDERR: No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In /Users/runner/work/jest/jest/e2e/global-setup
4 files checked across 2 projects. Run with `--verbose` for more details.
Pattern: project-1 - 0 matches
at json (e2e/runJest.ts:155:11)
at Object.<anonymous> (e2e/__tests__/globalSetup.test.ts:110:29)
|
run tests:
e2e/__tests__/globalSetup.test.ts#L147
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
- [ 'pass' ]
+ TestPathPatterns { patterns: [ 'pass' ] }
true
at Object.toBe (e2e/__tests__/globalSetup.test.ts:147:25)
|
run tests
Attempt 1 failed. Reason: Child_process exited with error code 1
|
run tests
Attempt 2 failed. Reason: Child_process exited with error code 1
|
The logs for this run have expired and are no longer available.
Loading