refine-frontends icon indicating copy to clipboard operation
refine-frontends copied to clipboard

Add first Cypress + React test

Open davecalnan opened this issue 2 years ago • 0 comments

This PR:

  • Removes the old Vue tests
  • Adds a tests/cypress directory
  • Adds test:e2e:run:react command to the root of the repo

This command uses start-server-and-test. This takes three arguments:

  1. The setup command to build and start the dev server
  2. The port/url it will wait until for it to return a 200
  3. The test command to run

It's a handy way to build your package, start a server, run your tests and then close the server, all in one.

davecalnan avatar Jun 27 '22 22:06 davecalnan