forked from cfpb/consumerfinance.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.cjs
34 lines (33 loc) · 1.01 KB
/
cypress.config.cjs
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
const { defineConfig } = require('cypress');
module.exports = 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) {
require('cypress-fail-fast/plugin')(on, config);
},
},
component: {
specPattern: 'test/cypress/component/**/*.cy.{js,jsx,ts,tsx}',
excludeSpecPattern: 'test/cypress/component/**/*-helpers.cy.js',
},
env: {
ENVIRONMENT: 'local-machine',
},
});