- Avoid giving coverage for bundled, but ensure included in instrumented path

This commit is contained in:
Brett Zamir
2019-11-23 23:50:56 +08:00
parent ddb0fc3ef6
commit 2b3cf0129c
2 changed files with 27 additions and 1 deletions

15
cypress/support/copy.js Normal file
View File

@@ -0,0 +1,15 @@
/* globals require */
/* eslint-disable import/no-commonjs */
const copyfiles = require('copyfiles');
const pkg = require('../../package.json');
copyfiles([
...pkg.nyc.exclude,
'instrumented'
], {
up: 1
}, () => {
// eslint-disable-next-line no-console
console.log('Done');
});