-
Notifications
You must be signed in to change notification settings - Fork 58
/
cypress.config.ts
48 lines (47 loc) · 1.18 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
44
45
46
47
48
import { defineConfig } from 'cypress'
export default defineConfig({
videoCompression: false,
userAgent: 'synpress',
projectId: 'bqro4k',
retries: {
runMode: 0,
openMode: 0,
},
screenshotsFolder: 'public-report/screenshots',
videosFolder: 'public-report/videos',
chromeWebSecurity: true,
viewportWidth: 1366,
viewportHeight: 768,
video: false,
env: {
coverage: false,
},
defaultCommandTimeout: 30000,
pageLoadTimeout: 30000,
requestTimeout: 30000,
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
reportDir: 'mochawesome-report',
charts: true,
overwrite: false,
html: false,
json: true,
reportPageTitle: 'My Test Suite',
embeddedScreenshots: true,
inlineAssets: true,
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
baseUrl: 'http://localhost:3000',
specPattern: 'tests/cypress/integration/**/*.{js,jsx,ts,tsx}',
supportFile: 'tests/cypress/support/index.ts',
},
component: {
devServer: {
framework: 'create-react-app',
bundler: 'webpack',
},
specPattern: './**/*spec.{js,jsx,ts,tsx}',
},
})