Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add first Cypress + React test #29

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add first Cypress + React test #29

wants to merge 3 commits into from

Conversation

davecalnan
Copy link
Collaborator

@davecalnan davecalnan commented Jun 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant