Skip to content

refactor!: remove deprecated jest.genMockFromModule() #13629

refactor!: remove deprecated jest.genMockFromModule()

refactor!: remove deprecated jest.genMockFromModule() #13629

Triggered via pull request April 28, 2024 15:18
Status Success
Total duration 16m 57s
Artifacts

nodejs.yml

on: pull_request
prepare-yarn-cache-ubuntu  /  Prepare yarn cache for ubuntu-latest
17s
prepare-yarn-cache-ubuntu / Prepare yarn cache for ubuntu-latest
prepare-yarn-cache-macos  /  Prepare yarn cache for macos-latest
22s
prepare-yarn-cache-macos / Prepare yarn cache for macos-latest
prepare-yarn-cache-windows  /  Prepare yarn cache for windows-latest
41s
prepare-yarn-cache-windows / Prepare yarn cache for windows-latest
TypeScript Compatibility
5m 49s
TypeScript Compatibility
Typecheck Examples and Tests
3m 54s
Typecheck Examples and Tests
Lint
1m 55s
Lint
Validate Yarn dependencies and constraints
15s
Validate Yarn dependencies and constraints
Node LTS on Ubuntu with leak detection
1m 12s
Node LTS on Ubuntu with leak detection
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 5 warnings
--findRelatedTests flag › coverage configuration is applied correctly: e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\find-related-tests-test' at rmSync (e2e/Utils.ts:107:8) at Object.<anonymous> (e2e/__tests__/findRelatedFiles.test.ts:16:24)
notify › does not report --notify flag: e2e/__tests__/detectOpenHandles.ts#L111
expect(received).toBe(expected) // Object.is equality Expected: "" Received: "Jest did not exit one second after the test run has completed.· 'This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue." at Object.toBe (e2e/__tests__/detectOpenHandles.ts:111:27)
Runtime CLI › always disables automocking: undefined#L1
expect(received).toMatch(expected) Expected substring: "Hello, world!" Received string: "" at Object.toMatch (packages/jest-repl/src/__tests__/runtime_cli.test.js:46:27)
generates coverage when using the testRegex config param: e2e/__tests__/coverageReport.test.ts#L190
expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 at Object.toBe (e2e/__tests__/coverageReport.test.ts:190:20)
generates coverage when using the testRegex config param: e2e/__tests__/coverageReport.test.ts#L189
expect(received).toMatchSnapshot() Snapshot name: `generates coverage when using the testRegex config param 1` - Snapshot - 15 + Received + 0 - -------------------------------------|---------|----------|---------|---------|------------------- - File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s - -------------------------------------|---------|----------|---------|---------|------------------- - All files | 60 | 0 | 50 | 60 | - coverage-report | 47.36 | 0 | 25 | 50 | - file.js | 100 | 100 | 100 | 100 | - notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19 - otherFile.js | 100 | 100 | 100 | 100 | - sum.js | 87.5 | 100 | 50 | 100 | - sumDependency.js | 0 | 0 | 0 | 0 | 8-13 - coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | - coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | - -------------------------------------|---------|----------|---------|---------|------------------- at Object.toMatchSnapshot (e2e/__tests__/coverageReport.test.ts:189:18)
should not transpile the transformer: e2e/__tests__/globalSetup.test.ts#L168
expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 at Object.toBe (e2e/__tests__/globalSetup.test.ts:168:20)
Windows with shard 2/4 / Node v21.x
Attempt 1 failed. Reason: Child_process exited with error code 1
macOS with shard 2/3 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
macOS with shard 2/3 / Node LTS using jest-jasmine2
Attempt 2 failed. Reason: Child_process exited with error code 1
Windows with shard 1/4 / Node v21.x
Attempt 1 failed. Reason: Child_process exited with error code 1
Windows with shard 1/4 / Node v21.x
Attempt 2 failed. Reason: Child_process exited with error code 1