forked from geosolutions-it/MapStore2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.single-run.js
25 lines (24 loc) · 1.02 KB
/
karma.conf.single-run.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const path = require("path");
module.exports = function karmaConfig(config) {
const testConfig = require('./testConfig')({
files: [
'tests-travis.webpack.js',
{ pattern: './web/client/test-resources/**/*', included: false },
{ pattern: './web/client/translations/**/*', included: false }
],
path: path.join(__dirname, "web", "client"),
testFile: 'tests-travis.webpack.js',
singleRun: true
});
testConfig.webpack.module.rules = [{
test: /\.jsx?$/,
exclude: /(__tests__|node_modules|legacy|libs\\Cesium|libs\\html2canvas)\\|(__tests__|node_modules|legacy|libs\/Cesium|libs\/html2canvas)\/|webpack\.js|utils\/(openlayers|leaflet)/,
enforce: "pre",
use: [
{
loader: 'babel-istanbul-loader'
}
]
}, ...testConfig.webpack.module.rules];
config.set(testConfig);
};