5211 tests arent using source maps master (#5566)

* removed unused require
* simplify config

Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
Scott Bell 2022-07-28 11:23:41 -07:00 committed by GitHub
parent c83ee95d9c
commit e774eb01f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 11 deletions

View File

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