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