-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcypress.config.ts
36 lines (32 loc) · 1.02 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
import { defineConfig } from "cypress";
import viteConfig from "./vite.config";
import vitePreprocessor from "cypress-vite";
import dotenv from "dotenv";
dotenv.config({ path: "./.env.development" });
export default defineConfig({
env: {
url: process.env.VITE_DEV_SERVER_URL,
private_key: "0xe30165a9c8c2a7f249f1cf04ba5f2ed8afacb762cc813a66b86c898cc806d58a",
tenderly_access_key: process.env.VITE_CYPRESS_TEST_TENDERLY_ACCESS_KEY,
tenderly_profile: process.env.VITE_CYPRESS_TEST_TENDERLY_PROFILE,
tenderly_project: process.env.VITE_CYPRESS_TEST_TENDERLY_PROJECT,
test_env: process.env.VITE_CYPRESS_TEST_ENV,
},
component: {
devServer: {
framework: "react",
bundler: "vite",
viteConfig,
},
},
e2e: {
baseUrl: process.env.VITE_DEV_SERVER_URL,
setupNodeEvents(on, _config) {
on("file:preprocessor", vitePreprocessor());
},
specPattern: "src/app/__tests__/**/*.cy.ts",
defaultCommandTimeout: 10000,
requestTimeout: 10000,
responseTimeout: 10000,
},
});