feat(CLI): --maxRelatedTestsDepth flag to control the depth of related test in --findRelatedTests #14446
Annotations
5 errors and 2 warnings
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -97,10 +97,11 @@
"json": false,
"lastCommit": false,
"listTests": false,
"logHeapUsage": false,
"maxConcurrency": 5,
+ "maxRelatedTestsDepth": null,
"maxWorkers": 2,
"noStackTrace": false,
"nonFlagArgs": [],
"notify": false,
"notifyMode": "failure-change",
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -97,10 +97,11 @@
"json": false,
"lastCommit": false,
"listTests": false,
"logHeapUsage": false,
"maxConcurrency": 5,
+ "maxRelatedTestsDepth": null,
"maxWorkers": 2,
"noStackTrace": false,
"nonFlagArgs": [],
"notify": false,
"notifyMode": "failure-change",
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
run tests:
e2e/__tests__/jestEnvironmentJsdom.test.ts#L27
expect(received).toMatch(expected)
Expected pattern: /PASS\s__tests__\/b.test.js/
Received string: "FAIL __tests__/b.test.js
● Test suite failed to run·
EXPERIMENTAL FEATURE!
Your test suite is leaking memory. Please ensure all references are cleaned.·
There is a number of things that can leak memory:
- Async operations that have not finished (e.g. fs.readFile).
- Timers not properly mocked (e.g. setInterval, setTimeout).
- Keeping references to the global scope.·
at onResult (D:/a/jest/jest/packages/jest-core/build/index.js:1055:18)
at Array.map (<anonymous>)·
PASS __tests__/a.test.js
● Console·
console.log
a·
at Object.<anonymous> (__tests__/a.test.js:1:34)··
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 4.248 s
Ran all test suites."
at Object.toMatch (e2e/__tests__/jestEnvironmentJsdom.test.ts:27:18)
|
run tests:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -97,10 +97,11 @@
"json": false,
"lastCommit": false,
"listTests": false,
"logHeapUsage": false,
"maxConcurrency": 5,
+ "maxRelatedTestsDepth": null,
"maxWorkers": 2,
"noStackTrace": false,
"nonFlagArgs": [],
"notify": false,
"notifyMode": "failure-change",
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
run tests
Final attempt failed. Child_process exited with error code 1
|
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
|
Loading