-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathcypress.config.ts
43 lines (40 loc) · 1.34 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
43
import { defineConfig } from 'cypress'
import { snapshotCypressDirectory } from './cypress/tasks/snapshotsScaffold'
import { uninstallDependenciesInScaffoldedProject } from './cypress/tasks/uninstallDependenciesInScaffoldedProject'
export default defineConfig({
projectId: 'ypt4pf',
viewportWidth: 800,
viewportHeight: 850,
experimentalMemoryManagement: true,
retries: {
runMode: 2,
openMode: 0,
},
reporter: '../../node_modules/cypress-multi-reporters/index.js',
reporterOptions: {
configFile: '../../mocha-reporter-config.json',
},
component: {
experimentalSingleTabRunMode: true,
supportFile: 'cypress/component/support/index.ts',
devServer: {
bundler: 'vite',
framework: 'vue',
},
indexHtmlFile: 'cypress/component/support/component-index.html',
},
e2e: {
baseUrl: 'http://localhost:5555',
supportFile: 'cypress/e2e/support/e2eSupport.ts',
async setupNodeEvents (on, config) {
delete process.env.CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT
process.env.CYPRESS_INTERNAL_E2E_TESTING_SELF = 'true'
const { e2ePluginSetup } = require('@packages/frontend-shared/cypress/e2e/e2ePluginSetup')
on('task', {
snapshotCypressDirectory,
uninstallDependenciesInScaffoldedProject,
})
return await e2ePluginSetup(on, config)
},
},
})