How to run Cypress component tests in CI

Viewed 49

I've just started using Component tests (Svelte) and they run in the Cypress GUI without problem. Now I want to put them in CI, but when I use run mode only the e2e tests are running.

What I've tried:

yarn cypress run

npx cypress run
1 Answers

You can pass the --component flag on the command line to run component tests:

yarn cypress run --component
Related