-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.ts
More file actions
31 lines (30 loc) · 928 Bytes
/
cypress.config.ts
File metadata and controls
31 lines (30 loc) · 928 Bytes
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
import { defineConfig } from 'cypress';
import viteConfig from './vite.config';
export default defineConfig({
component: {
devServer: {
framework: 'react',
bundler: 'vite',
viteConfig,
},
specPattern: 'src/__tests__/cypress/component/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'src/__tests__/cypress/support/component.ts',
indexHtmlFile: 'src/__tests__/cypress/support/component-index.html',
},
e2e: {
baseUrl: 'http://localhost:3000',
specPattern: 'src/__tests__/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'src/__tests__/cypress/support/e2e.ts',
viewportWidth: 1280,
viewportHeight: 720,
defaultCommandTimeout: 10000,
requestTimeout: 10000,
responseTimeout: 10000,
},
video: false,
screenshotOnRunFailure: true,
screenshotsFolder: 'cypress/screenshots',
videosFolder: 'cypress/videos',
viewportWidth: 1280,
viewportHeight: 720,
});