Uses custom webpack config for testing
This commit is contained in:
parent
46f1d3b095
commit
fbffb70172
|
@ -105,8 +105,11 @@
|
|||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"builder": "@angular-builders/custom-webpack:karma",
|
||||
"options": {
|
||||
"customWebpackConfig": {
|
||||
"path": "./webpack.config.js"
|
||||
},
|
||||
"main": "src/test.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "src/tsconfig.spec.json",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
const WebpackNotifierPlugin = require('webpack-notifier');
|
||||
const webpack = require('webpack');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
|
@ -19,7 +20,7 @@ module.exports = {
|
|||
exclude: /node_modules\/(?!(dmn-js|dmn-js-drd|dmn-js-shared|dmn-js-decision-table|table-js|dmn-js-literal-expression|diagram-js)\/).*/,
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ["@babel/preset-react", '@babel/preset-env']
|
||||
presets: ['@babel/preset-react', '@babel/preset-env']
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -29,6 +30,6 @@ module.exports = {
|
|||
alwaysNotify: true,
|
||||
title: 'App Name',
|
||||
contentImage: path.join(__dirname, 'image.png')
|
||||
}),
|
||||
})
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue