Skip to content

Commit 2134590

Browse files
author
Diego Ballesteros
committed
feat: Added istanbul code instrumentation
1 parent 38345bd commit 2134590

File tree

6 files changed

+9517
-3592
lines changed

6 files changed

+9517
-3592
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
27+
#testing
28+
/coverage
29+
.nyc_output

cypress.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ module.exports = defineConfig({
44
e2e: {
55
baseUrl: 'http://localhost:3000',
66
specPattern: 'cypress/integration/**/*.spec.js',
7+
setupNodeEvents(on, config) {
8+
require('@cypress/code-coverage/task')(on, config);
9+
return config;
10+
},
711
},
812
});

cypress/support/e2e.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
// ***********************************************************
1515

1616
// Import commands.js using ES2015 syntax:
17-
import './commands'
17+
import './commands';
18+
19+
import '@cypress/code-coverage/support';
1820

1921
// Alternatively you can use CommonJS syntax:
2022
// require('./commands')

0 commit comments

Comments
 (0)