forked from mangalam-research/wed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma-webpack.conf.js
More file actions
26 lines (24 loc) · 841 Bytes
/
Copy pathkarma-webpack.conf.js
File metadata and controls
26 lines (24 loc) · 841 Bytes
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
26
"use strict";
const commonConfig = require("./karma-common.conf.js");
module.exports = function configure(config) {
const dist = "build/packed/";
const options = commonConfig(config, dist, "karma-main-webpack");
options.files.push({
pattern: `${dist}lib/*.@(js|map)`,
included: false,
});
options.files.push({
pattern: `${dist}lib/!(tests)/**/*.@(js|map|xml|html|json|css|woff|woff2)`,
included: false,
});
options.files.push({
pattern: "build/standalone/lib/tests/{*,*_data/**/*,integration/wed-save-test}.@(js|map|xml|html|json)",
included: false,
});
// We need the Rxjs files from the dev build because the tests load them individually.
options.files.push({
pattern: "build/standalone/lib/external/rxjs/**/*.@(js|map|xml|html|json)",
included: false,
});
config.set(options);
};