2020-01-31 10:17:26 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
2022-04-11 15:08:15 +00:00
|
|
|
const webpackConfig = require("./webpack.config.cjs");
|
2020-01-31 10:17:26 +00:00
|
|
|
|
2020-12-03 00:05:49 +00:00
|
|
|
module.exports = function (config) {
|
|
|
|
config.set({
|
|
|
|
basePath: "",
|
2022-04-14 17:16:06 +00:00
|
|
|
frameworks: [
|
|
|
|
"webpack",
|
|
|
|
"mocha",
|
2022-04-15 09:51:06 +00:00
|
|
|
"chai",
|
2022-04-14 17:16:06 +00:00
|
|
|
],
|
|
|
|
files: [
|
|
|
|
"test/unit-web/run-web-implementation.test.ts",
|
|
|
|
"test/unit/index-named-exports.test.ts",
|
|
|
|
],
|
2020-12-03 00:05:49 +00:00
|
|
|
exclude: [],
|
|
|
|
preprocessors: {
|
|
|
|
"test/**/*.ts": ["webpack"],
|
|
|
|
},
|
|
|
|
webpack: {
|
|
|
|
mode: "production",
|
|
|
|
module: webpackConfig.module,
|
|
|
|
resolve: webpackConfig.resolve,
|
2022-04-14 17:16:06 +00:00
|
|
|
experiments: webpackConfig.experiments,
|
|
|
|
optimization: webpackConfig.optimization,
|
|
|
|
stats: {warnings:false},
|
2020-12-03 00:05:49 +00:00
|
|
|
},
|
|
|
|
reporters: ["spec"],
|
2020-01-31 10:17:26 +00:00
|
|
|
|
2020-12-03 00:05:49 +00:00
|
|
|
browsers: ["ChromeHeadless"],
|
2020-01-31 10:17:26 +00:00
|
|
|
|
2020-12-03 00:05:49 +00:00
|
|
|
singleRun: true,
|
|
|
|
});
|
2020-11-30 16:12:18 +00:00
|
|
|
};
|