forked from THM-Health/PILOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
32 lines (27 loc) · 906 Bytes
/
cypress.config.js
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
import { defineConfig } from 'cypress';
import 'dotenv/config'
const baseUrl = process.env.APP_URL || 'http://localhost';
export default defineConfig({
downloadsFolder: 'tests/Frontend/downloads',
fixturesFolder: 'tests/Frontend/fixtures',
screenshotsFolder: 'tests/Frontend/screenshots',
videosFolder: 'tests/Frontend/videos',
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
baseUrl: baseUrl,
experimentalStudio: true,
supportFile: 'tests/Frontend/support/e2e.{js,jsx,ts,tsx}',
specPattern: 'tests/Frontend/e2e/**/*.cy.{js,jsx,ts,tsx}',
},
component: {
indexHtmlFile: 'tests/Frontend/support/component-index.html',
supportFile: 'tests/Frontend/support/component.js',
specPattern: 'tests/Frontend/component/**/*.cy.{js,jsx,ts,tsx}',
devServer: {
framework: 'vue',
bundler: 'vite',
},
},
});