-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
57 lines (52 loc) · 1.59 KB
/
cypress.config.js
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
49
50
51
52
53
54
55
56
57
const { defineConfig } = require('cypress');
const CypressCoveragePlugin = require('./lib');
// const CypressCoveragePlugin = require('cypress-monocart-coverage');
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
CypressCoveragePlugin(on, config, {
// logging: 'debug',
name: 'My Cypress e2e Coverage Report',
entryFilter: {
'**/*.cy.js': true
},
sourcePath: {
'cypress-monocart-coverage/': ''
},
outputDir: './coverage-reports/e2e',
reports: [
'v8',
'console-details',
'raw'
]
});
}
},
component: {
setupNodeEvents(on, config) {
CypressCoveragePlugin(on, config, {
// logging: 'debug',
name: 'My Cypress component Coverage Report',
entryFilter: {
'**/src/spec*.js': true
},
sourceFilter: {
'**/cypress/component/**': true
},
sourcePath: {
'cypress-monocart-coverage/': ''
},
outputDir: './coverage-reports/component',
reports: [
'v8',
'console-details',
'raw'
]
});
},
devServer: {
framework: 'react',
bundler: 'webpack'
}
}
});