Compare commits

..

2 Commits

Author SHA1 Message Date
Jesse Mazzella
9b1eb245a2 Merge branch 'master' into mct5263-enforce-max-nested-describe 2022-07-28 08:46:28 -07:00
Jesse Mazzella
846c9c2fca [e2e] Add eslint rule for max nested describes 2022-07-26 16:41:25 -07:00
2 changed files with 11 additions and 4 deletions

9
babel.coverage.js Normal file
View File

@@ -0,0 +1,9 @@
// This is a Babel config that webpack.coverage.js uses in order to instrument
// code with coverage instrumentation.
const babelConfig = {
plugins: [['babel-plugin-istanbul', {
extension: ['.js', '.vue']
}]]
};
module.exports = babelConfig;

View File

@@ -2,6 +2,7 @@
// instrumentation using babel-plugin-istanbul (see babel.coverage.js)
const config = require('./webpack.dev');
const path = require('path');
const vueLoaderRule = config.module.rules.find(r => r.use === 'vue-loader');
// eslint-disable-next-line no-undef
const CI = process.env.CI === 'true';
@@ -33,11 +34,8 @@ config.module.rules.push({
use: {
loader: 'babel-loader',
options: {
retainLines: true,
// eslint-disable-next-line no-undef
plugins: [['babel-plugin-istanbul', {
extension: ['.js', '.vue']
}]]
configFile: path.resolve(process.cwd(), 'babel.coverage.js')
}
}
});