-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
42 lines (40 loc) · 1.06 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
40
41
42
/** @format */
import { defineConfig } from "cypress";
export default defineConfig({
defaultCommandTimeout: 10000,
requestTimeout: 5000,
responseTimeout: 5000,
pageLoadTimeout: 10000,
video: true,
fileServerFolder: "src/",
videosFolder: "cypress/videos",
screenshotsFolder: "cypress/screenshots",
fixturesFolder: "cypress/fixtures",
chromeWebSecurity: false,
env: {
NODE_TLS_REJECT_UNAUTHORIZED: "0",
// Full spectrum of viewports for testing
FULL_SPECTRUM: false,
// Layout tests to run across all pages
ALL_PAGE: false,
},
numTestsKeptInMemory: 5,
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
baseUrl: "http://localhost:3000/",
specPattern: "src/cypress/e2e/**/*.cy.{ts,tsx}",
excludeSpecPattern: "src/cypress/e2e/examples/*.cy.{ts,tsx}",
supportFile: "src/cypress/support/e2e.ts",
slowTestThreshold: 10000,
testIsolation: false,
},
component: {
devServer: {
framework: "next",
bundler: "webpack",
},
},
watchForFileChanges: false,
});