-
-
Notifications
You must be signed in to change notification settings - Fork 116
/
cypress.config.js
30 lines (28 loc) · 987 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
const { defineConfig } = require('cypress');
const cypressConfig = {
projectId: 'i8bxr8',
// https://docs.cypress.io/guides/references/configuration#e2e
e2e: {
baseUrl: process.env.VITE_API_URL || 'http://localhost:8080',
specPattern: [ 'tests/e2e/specs/**/*.spec.js' ],
excludeSpecPattern: [ 'test/e2e/specs/playground.spec.js' ],
supportFile: 'tests/e2e/support/index.js',
},
env: {
VITE_USE_GAMESTATE_API: process.env.VITE_USE_GAMESTATE_API,
},
// Retry tests 2 times headlessly, no retries in UI
retries: {
runMode: 2,
openMode: 0,
},
numTestsKeptInMemory: 25,
// https://docs.cypress.io/guides/references/configuration#Videos
video: false,
// https://docs.cypress.io/guides/references/configuration#Folders-Files
downloadsFolder: 'tests/e2e/downloads',
fixturesFolder: 'tests/e2e/fixtures',
screenshotsFolder: 'tests/e2e/screenshots',
videosFolder: 'tests/e2e/videos',
};
module.exports = defineConfig(cypressConfig);