-
Notifications
You must be signed in to change notification settings - Fork 1
/
cypress.config.ts
40 lines (38 loc) · 934 Bytes
/
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
40
import { defineConfig } from "cypress";
export default defineConfig({
retries: {
// Configure retry attempts for `cypress run`
// Default is 0
runMode: 2,
// Configure retry attempts for `cypress open`
// Default is 0
openMode: 0
},
reporter: "mochawesome",
reporterOptions: {
reportDir: "cypress/results/json",
overwrite: false,
html: false,
json: true,
suiteTitleSeparatedBy: " > ",
testCaseSwitchClassnameAndName: false,
rootSuiteTitle: "Angular Tests",
toConsole: true
},
e2e: {
setupNodeEvents(on, config) {
return config;
},
supportFile: false,
viewportHeight: 1000,
viewportWidth: 1600,
specPattern: "src/**/*.cy.{js,jsx,ts,tsx}",
excludeSpecPattern: "cypress/**/*.driver.{js,jsx,ts,tsx}",
defaultCommandTimeout: 100000,
experimentalStudio: true,
env: {
env1: "value1",
env2: "value2"
}
}
});