forked from target/goalert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
37 lines (31 loc) · 863 Bytes
/
cypress.config.js
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
36
37
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/no-require-imports */
const { defineConfig } = require('cypress')
const setupNodeEvents = require('./web/src/cypress/plugins/index')
module.exports = defineConfig({
waitForAnimations: false,
viewportWidth: 1440,
viewportHeight: 900,
requestTimeout: 15000,
defaultCommandTimeout: 15000,
numTestsKeptInMemory: 1,
video: false,
retries: {
runMode: 2,
openMode: 0,
},
blockHosts: ['gravatar.com'],
e2e: {
setupNodeEvents,
baseUrl: 'http://localhost:3030',
excludeSpecPattern: '*.map',
supportFile: 'bin/build/integration/cypress/support/index.js',
specPattern: 'bin/build/integration/cypress/integration/*.cy.js',
},
component: {
devServer: {
framework: 'react',
bundler: 'webpack',
},
},
})