These are end to end tests triggered via a CI job. You can run these tests locally by following the [running tests][#running-the-tests], and they're automatically run as part of a CI workflow which runs when packages/_ or the e2e-tests/_ directory is changed in a commit.
- Create a folder
e2e-tests/name-of-the-test
- Copy structure from an existing test, e.g. [
e2e-tests/path-prefix
][./path-prefix] - Add your tests in
e2e-tests/name-of-the-test/cypress/integration/your-test-here.js
cd
to the test (e.g.cd e2e-tests/gatsby-image
)- Install dependencies:
yarn
ornpm install
- OPTIONAL: use
gatsby-dev
CLI to link current changes in packages/ - Run the
test
script, e.g.yarn test
ornpm test
Thanks for contributing to Gatsby! 💜