forked from graasp/graasp-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.ts
39 lines (37 loc) · 1.16 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
import setupCoverage from '@cypress/code-coverage/task.js';
import { defineConfig } from 'cypress';
const ENV = {
VITE_GRAASP_REDIRECTION_HOST: process.env.VITE_GRAASP_REDIRECTION_HOST,
VITE_GRAASP_DOMAIN: process.env.VITE_GRAASP_DOMAIN,
VITE_GRAASP_API_HOST: process.env.VITE_GRAASP_API_HOST,
VITE_SHOW_NOTIFICATIONS: false,
VITE_GRAASP_AUTH_HOST: process.env.VITE_GRAASP_AUTH_HOST,
VITE_GRAASP_PLAYER_HOST: process.env.VITE_GRAASP_PLAYER_HOST,
VITE_GRAASP_ANALYZER_HOST: process.env.VITE_GRAASP_ANALYZER_HOST,
VITE_GRAASP_LIBRARY_HOST: process.env.VITE_GRAASP_LIBRARY_HOST,
VITE_GRAASP_ACCOUNT_HOST: process.env.VITE_GRAASP_ACCOUNT_HOST,
};
export default defineConfig({
video: false,
retries: {
runMode: 2,
},
chromeWebSecurity: false,
e2e: {
env: ENV,
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
setupCoverage(on, config);
return config;
},
baseUrl: `http://localhost:${process.env.VITE_PORT || 3333}`,
},
component: {
devServer: {
framework: 'react',
bundler: 'vite',
},
env: ENV,
},
});