Reduce karma.conf.js diff

This commit is contained in:
dapplion 2020-11-25 15:16:19 +00:00
parent 4cb49674d5
commit b424842cd5
1 changed files with 21 additions and 20 deletions

View File

@ -1,25 +1,26 @@
// eslint-disable-next-line @typescript-eslint/no-require-imports
const webpackConfig = require("./webpack.config");
module.exports = function (config) {
config.set({
basePath: "",
frameworks: ["mocha", "chai"],
files: ["test/unit/*.ts"],
exclude: [],
preprocessors: {
"test/unit/run-web-implementation.test.ts": ["webpack"],
},
webpack: {
mode: "production",
node: webpackConfig.node,
module: webpackConfig.module,
resolve: webpackConfig.resolve,
},
reporters: ["spec"],
module.exports = function(config) {
config.set({
browsers: ["ChromeHeadless"],
basePath: "",
frameworks: ["mocha", "chai"],
files: ["test/unit/run-web-implementation.test.ts"],
exclude: [],
preprocessors: {
"test/**/*.ts": ["webpack"]
},
webpack: {
mode: "production",
node: webpackConfig.node,
module: webpackConfig.module,
resolve: webpackConfig.resolve
},
reporters: ["spec"],
singleRun: true,
});
};
browsers: ["ChromeHeadless"],
singleRun: true
});
};