diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-06-01 23:21:30 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-06-02 19:10:28 +0200 |
| commit | f7cc48495b085fe8f6cfa37e80e968d5b47639df (patch) | |
| tree | 1e43ee0095979a0009b521ef7cc2a0f069b132b3 /cypress.config.js | |
| parent | a8af53c118478e6ed68975c32cc1202b7c7b798e (diff) | |
test: install and configure cypress
I also configure Jest to avoid conflicts between Cypress and Jest.
Diffstat (limited to 'cypress.config.js')
| -rw-r--r-- | cypress.config.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cypress.config.js b/cypress.config.js new file mode 100644 index 0000000..c427b03 --- /dev/null +++ b/cypress.config.js @@ -0,0 +1,15 @@ +import { defineConfig } from 'cypress'; + +export default defineConfig({ + downloadsFolder: 'tests/cypress/downloads', + fixturesFolder: 'tests/cypress/fixtures', + screenshotsFolder: 'tests/cypress/screenshots', + supportFolder: 'tests/cypress/support', + videosFolder: 'tests/cypress/videos', + + e2e: { + baseUrl: 'http://localhost:3000', + specPattern: '**/*.cy.{js,jsx,ts,tsx}', + supportFile: 'tests/cypress/support/e2e.ts', + }, +}); |
