Your First Jest Run
Running Jest tests with Currents dashboard
Setting up Currents for running and recording Jest tests in parallel can be done seamlessly within a few minutes.
Prerequisites
Your First Jest Run
Upon running Jest tests, Currents reporter for jest generates a temporary folder containing the test results. To upload the results to Currents, you must run currents upload
Step 1: Run the tests
npx jest --reporters=@currents/jest
Step 2: Upload the results
Run the following command to upload the last results to Currents dashboard (see currents upload)
npx currents upload --key=XXX --project-id=YYY
Set the Record Key, and Project ID obtained from Currents dashboard in the previous step.
Explore Your First Run
The execution results will show on the Currents dashboard. The latest report should be uploaded to Currents, and a link to the run will be displayed.

Good To Know
To provide reliable information about your tests, Currents run a "discovery" process - i.e. exploring the full test suite details. The discovery runs as part of currents upload
command. Behind the scenes, the command runs jest
in discovery mode.
Last updated
Was this helpful?