-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcypress.config.ts
More file actions
30 lines (29 loc) · 869 Bytes
/
cypress.config.ts
File metadata and controls
30 lines (29 loc) · 869 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
import { defineConfig } from "cypress";
export default defineConfig({
e2e: {
allowCypressEnv: false,
baseUrl: "http://localhost:3000",
supportFile: "cypress/support/e2e.ts",
specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
fixturesFolder: "cypress/fixtures",
screenshotsFolder: "cypress/screenshots",
videosFolder: "cypress/videos",
video: false,
viewportWidth: 1280,
viewportHeight: 720,
// VSCode workbench takes time to load (300+ extensions)
requestTimeout: 10000, // 10s for requests
responseTimeout: 30000, // 30s for responses
pageLoadTimeout: 120000, // 2min for initial page load
retries: {
runMode: 2,
openMode: 0,
},
env: {
VITE_ROOT_URL: "http://localhost:3000",
},
setupNodeEvents() {
// implement node event listeners here if needed
},
},
});