Jest
❗
This implementation is experimental. It is not configured for use with Replay Test Teams.
You can record jest using replay-node
. To do so:
- Install
replay-node
, as described here. - Run
replay-node --exec $jestCmd
to record the test. For example:replay-node --exec npm test
would record all of the tests run by the test script in yourpackage.json
,replay-node --exec npm run test -- specific.test.ts
would pass “specific.test.ts
” tonpm run test
and record that.
For more details on Replay Node, check out the Recording Node.js Guide.