-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathcypress.config.js
More file actions
35 lines (34 loc) · 1.06 KB
/
cypress.config.js
File metadata and controls
35 lines (34 loc) · 1.06 KB
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
const { defineConfig } = require("cypress");
module.exports = defineConfig({
viewportWidth: 1000,
viewportHeight: 600,
fileServerFolder: "tests/e2e/cypress",
fixturesFolder: "tests/e2e/cypress/fixtures",
downloadsFolder: "tests/e2e/cypress/downloads",
screenshotsFolder: "tests/e2e/cypress/screenshots",
videosFolder: "tests/e2e/cypress/videos",
video: true,
chromeWebSecurity: false,
retries: {
runMode: 1,
openMode: 0,
},
e2e: {
specPattern: "tests/e2e/cypress/integration/**/*.{js,jsx,ts,tsx}",
supportFile: "tests/e2e/cypress/support/e2e.js",
baseUrl: "http://localhost:8889",
defaultCommandTimeout: 20000,
requestTimeout: 30000,
responseTimeout: 30000,
pageLoadTimeout: 60000,
setupNodeEvents(on, config) {
// Forward Stripe test keys from process.env to Cypress.env
config.env.STRIPE_TEST_PK_KEY = process.env.STRIPE_TEST_PK_KEY || "";
config.env.STRIPE_TEST_SK_KEY = process.env.STRIPE_TEST_SK_KEY || "";
return config;
},
},
env: {
MAILPIT_URL: "http://localhost:8025",
},
});