You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jest --json --outputFile=jest.json --testLocationInResults --verbose
Inspect the generated jest.json report.
Expected behavior
Top level startTime and endTime in the generated results file. We're trying to build a dashboard for Jest and Playwright and build times so we can track them for the past n days, but I'm only seeing the total test time reported in STDOUT and not in the outputFile, which makes it tricky.
Actual behavior
startTime but no endTime (so we can calculate test execution duration)
jest --json --outputFile=jest.json --testLocationInResults --verbose
PASS ./sum.test.js
✓ adds 1 + 2 to equal 3 (1 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 0.1 s, estimated 1 s
Ran all test suites.
Test results written to: jest.json
Version
29.7.0
Steps to reproduce
Expected behavior
Top level
startTime
andendTime
in the generated results file. We're trying to build a dashboard for Jest and Playwright and build times so we can track them for the past n days, but I'm only seeing the total test time reported in STDOUT and not in theoutputFile
, which makes it tricky.Actual behavior
startTime
but noendTime
(so we can calculate test execution duration)Versus STDOUT's output:
jest --json --outputFile=jest.json --testLocationInResults --verbose PASS ./sum.test.js ✓ adds 1 + 2 to equal 3 (1 ms) Test Suites: 1 passed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: 0.1 s, estimated 1 s Ran all test suites. Test results written to: jest.json
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: