[test optimization] Fix jest test assertion#7774
Conversation
Resolves the TODO at jest.spec.js:2933 — verify that when a new test retried by Early Flake Detection fails some attempts, the process exit code remains 0. Also converts the test from done-callback to async/await style. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Overall package sizeSelf size: 4.96 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7774 +/- ##
=======================================
Coverage 80.43% 80.43%
=======================================
Files 741 741
Lines 32173 32173
=======================================
Hits 25877 25877
Misses 6296 6296 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-03-13 13:05:36 Comparing candidate commit 0b27582 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 228 metrics, 32 unstable metrics. |
jest test sessionjest test assertion
Resolves the TODO at jest.spec.js:2933 — verify that when a new test retried by Early Flake Detection fails some attempts, the process exit code remains 0. Also converts the test from done-callback to async/await style. Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Resolves the TODO at jest.spec.js:2933 — verify that when a new test retried by Early Flake Detection fails some attempts, the process exit code remains 0. Also converts the test from done-callback to async/await style. Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
What does this PR do?
Add exit code assertion which is already working
Motivation
Remove TODO