Skip to content

Commit

Permalink
#227: Fixes according to PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrombitas committed Jul 8, 2022
1 parent 00bf759 commit 965c4b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@cypress/vite-dev-server": "^2.2.2",
"@cypress/vue": "^3.1.0",
"@cypress/webpack-dev-server": "^1.8.3",
"coverage-istanbul-loader": "^3.0.5",
"cross-env": "^7.0.3",
"cypress": "^9.5.2",
"lodash": "^4.17.21",
Expand All @@ -44,7 +45,6 @@
},
"devDependencies": {
"@types/lodash": "^4.14.178",
"coverage-istanbul-loader": "^3.0.5",
"rimraf": "^3.0.2"
}
}
19 changes: 8 additions & 11 deletions packages/e2e-cypress/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,15 @@ module.exports = async function (api) {
);
});
} else {
if (api.hasWebpack === true) {
api.extendWebpack((cfg) => {
cfg.module.rules.push({
test: /\.(js|ts|vue)$/,
loader: '@jsdevtools/coverage-istanbul-loader',
options: { esModules: true },
enforce: 'post',
include: path.join(__dirname, '..', '..', '..', '..', 'src'),
exclude: [/\.(e2e|spec)\.(js|ts)$/, /node_modules/],
});
api.extendWebpack((cfg) => {
cfg.module.rules.push({
test: /\.(js|ts|vue)$/,
loader: '@jsdevtools/coverage-istanbul-loader',
options: { esModules: true },
enforce: 'post',
exclude: [/\.(e2e|spec)\.(js|ts)$/, /node_modules/],
});
}
});
}
}
};

0 comments on commit 965c4b2

Please sign in to comment.