forked from stakwork/sphinx-nav-fiber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.ts
42 lines (40 loc) · 1.08 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
/* eslint-disable @typescript-eslint/no-unused-vars */
// eslint-disable-next-line import/no-extraneous-dependencies
import { defineConfig } from 'cypress'
export default defineConfig({
env: {
codeCoverage: {
exclude: ['cypress/**/*.*', '*/AppNew/*'],
},
},
e2e: {
retries: 5,
baseUrl: 'http://localhost:3000',
defaultCommandTimeout: 10000,
pageLoadTimeout: 90000,
requestTimeout: 60000,
responseTimeout: 60000,
setupNodeEvents(on, config) {
require('@cypress/code-coverage/task')(on, config)
// include any other plugin code...
// It's IMPORTANT to return the config object
// with any changed environment variables
return config
},
viewportHeight: 900,
viewportWidth: 1440,
watchForFileChanges: false,
experimentalMemoryManagement: true,
numTestsKeptInMemory: 1,
video: false,
},
component: {
supportFile: './cypress/support/components.ts',
devServer: {
framework: 'react',
bundler: 'vite',
},
specPattern: 'src/**/*.cy.{js,jsx,ts,tsx}',
},
projectId: '5pz59y',
})