Your First Jest Run
Running Jest tests with Currents dashboard
Last updated
Running Jest tests with Currents dashboard
Last updated
Setting up Currents for running and recording Jest tests in parallel can be done seamlessly within a few minutes.
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
Run the following command to upload the last results to Currents dashboard (see currents upload)
Set the Record Key, and Project ID obtained from Currents dashboard in the previous step.
You can defined the Record Key and Project ID in the Reporter configuration.
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.
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.
It is important to ensure that
npx jest --reporters=@currents/jest
and currents upload
share the same environment variables
Learn more about our dashboard and its features.