-
Notifications
You must be signed in to change notification settings - Fork 112
/
cypress.template.mjs
35 lines (34 loc) · 1.04 KB
/
cypress.template.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig } from 'cypress';
import cypressFailFast from 'cypress-fail-fast/src/plugin.js';
export default defineConfig({
experimentalMemoryManagement: true,
screenshotOnRunFailure: true,
fixturesFolder: 'test/cypress/fixtures',
videosFolder: 'test/cypress/videos',
screenshotsFolder: 'test/cypress/screenshots',
defaultCommandTimeout: 25000,
blockHosts: [
'*.federalregister.gov',
'*.geo.census.gov',
'*google-analytics.com',
'*googletagmanager.com',
'*.newrelic.com',
'*.nr-data.net',
],
e2e: {
baseUrl: 'http://localhost:8000',
specPattern: 'test/cypress/integration/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'test/cypress/support/e2e.js',
excludeSpecPattern: 'test/cypress/integration/**/*-helpers.cy.js',
setupNodeEvents(on, config) {
cypressFailFast(on, config);
},
},
component: {
specPattern: 'test/cypress/component/**/*.cy.{js,jsx,ts,tsx}',
excludeSpecPattern: 'test/cypress/component/**/*-helpers.cy.js',
},
env: {
ENVIRONMENT: 'local-machine',
},
});