Skip to content

fix(jest-config): support collectCoverage in project config #14115

fix(jest-config): support collectCoverage in project config

fix(jest-config): support collectCoverage in project config #14115

Triggered via pull request September 22, 2024 10:18
Status Success
Total duration 12m 33s
Artifacts

nodejs.yml

on: pull_request
prepare-yarn-cache-ubuntu  /  Prepare yarn cache for ubuntu-latest
16s
prepare-yarn-cache-ubuntu / Prepare yarn cache for ubuntu-latest
prepare-yarn-cache-macos  /  Prepare yarn cache for macos-latest
21s
prepare-yarn-cache-macos / Prepare yarn cache for macos-latest
prepare-yarn-cache-windows  /  Prepare yarn cache for windows-latest
54s
prepare-yarn-cache-windows / Prepare yarn cache for windows-latest
TypeScript Compatibility
5m 43s
TypeScript Compatibility
Typecheck Examples and Tests
3m 56s
Typecheck Examples and Tests
Lint
1m 53s
Lint
Validate Yarn dependencies and constraints
18s
Validate Yarn dependencies and constraints
Node LTS on Ubuntu with leak detection
1m 8s
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

5 errors and 3 warnings
handles a bad revision for "changedSince": e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\jest-changed-files-test-dir' at rmSync (e2e/Utils.ts:107:8) at Object.<anonymous> (e2e/__tests__/jestChangedFiles.test.ts:62:24)
gets changed files for hg: e2e/Utils.ts#L107
EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\jest-changed-files-test-dir' at rmSync (e2e/Utils.ts:107:8) at Object.<anonymous> (e2e/__tests__/jestChangedFiles.test.ts:61:25)
gets changed files for hg: e2e/__tests__/jestChangedFiles.test.ts#L394
expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 36 Array [ + ".watchmanconfig", + "00changelog.i", + "26dfeeb6e641a33dae4961196235bdb965b21b", + "291d1772de937d5f7ed9dea4a3fc6385859184", + "3c8d3af3016988d8abb98e6a35854f088e8704", + "6d6c73d3d5a72254e74f72e6725d1402c9ddc8", + "9de29bb2d1d6434b8b29ae775ad8c2e48c5391", + "COMMIT_EDITMSG", + "HEAD", + "HEAD", + "ab0f70703a36d51ba9ab4ac3db92ede266f2d4", + "applypatch-msg.sample", + "b83fd321d87232fd6688dd32631f7c27cd36cb", + "commit-msg.sample", + "config", + "description", + "exclude", + "file1.js", + "file1.test.js", "file1.txt", "file2.txt", "file3.txt", + "fsmonitor-watchman.sample", + "index", + "main", + "main", + "package.json", + "post-update.sample", + "pre-applypatch.sample", + "pre-commit.sample", + "pre-merge-commit.sample", + "pre-push.sample", + "pre-rebase.sample", + "pre-receive.sample", + "prepare-commit-msg.sample", + "push-to-checkout.sample", + "requires", + "sendemail-validate.sample", + "update.sample", ] at Object.toEqual (e2e/__tests__/jestChangedFiles.test.ts:394:70)
collects coverage only from specified file: e2e/__tests__/coverageReport.test.ts#L49
expect(received).toMatchSnapshot() Snapshot name: `collects coverage only from specified file 1` - Snapshot - 6 + Received + 0 - ----------|---------|----------|---------|---------|------------------- - File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s - ----------|---------|----------|---------|---------|------------------- - All files | 100 | 100 | 100 | 100 | - file.js | 100 | 100 | 100 | 100 | - ----------|---------|----------|---------|---------|------------------- at Object.toMatchSnapshot (e2e/__tests__/coverageReport.test.ts:49:18)
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)
Windows with shard 2/4 / Node LTS using jest-jasmine2
Attempt 1 failed. Reason: Child_process exited with error code 1
Windows with shard 1/4 / Node v22.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