forked from s-yadav/react-number-format
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
30 lines (28 loc) · 728 Bytes
/
karma.conf.js
File metadata and controls
30 lines (28 loc) · 728 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
27
28
29
30
const webpack = require("webpack");
const { TEST_BROWSER } = process.env;
const runOnNode = TEST_BROWSER === "ChromeHeadless";
module.exports = function(config) {
config.set({
browsers: [TEST_BROWSER || "Chrome"],
singleRun: runOnNode,
frameworks: ["jasmine"],
files: ["./test/**/*.spec.js"],
reporters: [runOnNode ? "spec" : "kjhtml"],
preprocessors: {
"./test/**/*.js": ["webpack", "sourcemap"] //preprocess with webpack
},
webpack: {
mode: "none",
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, use: ["babel-loader"] }
]
},
externals: {},
watch: true
},
webpackServer: {
noInfo: true
}
});
};