-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcypress.config.ts
More file actions
38 lines (35 loc) · 1000 Bytes
/
cypress.config.ts
File metadata and controls
38 lines (35 loc) · 1000 Bytes
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
import { defineConfig } from "cypress";
import registerCodeCoverageTasks from "@cypress/code-coverage/task";
const port = process.env.PORT ?? 3000;
const hostname = "localhost";
const url = `http://${hostname}:${port}`;
export default defineConfig({
e2e: {
baseUrl: url,
specPattern: "tests/cypress/integration/**/*.spec.{js,jsx,ts,tsx}",
setupNodeEvents(on, config) {
registerCodeCoverageTasks(on, config);
return config;
},
supportFile: "tests/cypress/support/e2e.js",
},
env: {
codeCoverage: {
url: `http://${hostname}:${port}/coverage`,
},
},
downloadsFolder: "tests/cypress/downloads",
fixturesFolder: "tests/cypress/fixtures",
screenshotsFolder: "tests/cypress/screenshots",
videosFolder: "tests/cypress/videos",
video: false,
reporter: "cypress-multi-reporters",
reporterOptions: {
configFile: "cypress-reporter-config.json",
},
defaultCommandTimeout: 20000,
retries: {
runMode: 3,
openMode: 3,
},
});