generated from mmisty/cypress-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
39 lines (34 loc) · 1.09 KB
/
cypress.config.ts
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
38
39
import { defineConfig } from 'cypress';
import { setupPlugins } from './integration/plugins';
import { pluginGrep } from './src/plugins';
const cypressFolder = 'integration';
export default defineConfig({
env: {
GREP_addControlToUI: true,
GREP_showTagsInTitle: true,
GREP_showExcludedTests: true,
REDIRECT_BROWSER_LOG: true,
allure: true,
},
watchForFileChanges: false,
e2e: {
// experimentalRunAllSpecs: true,
specPattern: [
`${cypressFolder}/e2e/example/*.(cy|test|spec).ts`,
`${cypressFolder}/e2e/example/**/*.(cy|test|spec).ts`,
`${cypressFolder}/e2e/regression/**/*.(cy|test|spec).ts`,
`${cypressFolder}/e2e/*.(cy|test|spec).ts`,
],
supportFile: `${cypressFolder}/support/index.ts`,
downloadsFolder: `${cypressFolder}/downloads`,
videosFolder: `${cypressFolder}/videos`,
fixturesFolder: `${cypressFolder}/fixtures`,
screenshotsFolder: `${cypressFolder}/screenshots`,
video: false,
setupNodeEvents(on, config) {
pluginGrep(on, config);
setupPlugins(on, config);
return config;
},
},
});