forked from SAP/ui5-webcomponents-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.ts
36 lines (35 loc) · 849 Bytes
/
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
import codeCoverageTask from '@cypress/code-coverage/task.js';
import { defineConfig } from 'cypress';
export default defineConfig({
env: {
codeCoverage: {
exclude: [
'cypress/**',
'**/src/interfaces/*',
'**/src/enums/*',
'**/*.stories.tsx',
'**/*.test.{ts,tsx}',
'**/node_modules/**',
'packages/*/src/index.ts',
'packages/main/src/components/AnalyticalTable/types/*',
'packages/main/src/webComponents/**'
]
}
},
component: {
setupNodeEvents(on, config) {
codeCoverageTask(on, config);
return config;
},
devServer: {
framework: 'react',
bundler: 'vite'
}
},
includeShadowDom: true,
viewportWidth: 1920,
viewportHeight: 1080,
video: false,
screenshotOnRunFailure: false,
scrollBehavior: false
});