Exporting Tests for CI

Project suites can be exported as Jest test project and be ran in command line by, for example, Continuous Integration server.

As we press Ctrl+Shift-E (⌘⇧E) or click on File/Export Project for CI... menu item:

you get Export Project modal window:

Export Project modal window

It is quite similar to Test Reports window. So we can choose target test environment, which suites to include into Jest project and finally where to save the generated project.

After exporting we can jump to the given export directory and install npm dependencies:

npm install

then we run the tests:

npm test

We are expected to get output like that:

Running Puppetry export in CLI