-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.nwjs.js
More file actions
24 lines (23 loc) · 853 Bytes
/
karma.conf.nwjs.js
File metadata and controls
24 lines (23 loc) · 853 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
/* eslint no-process-env: 0, no-magic-numbers: 0, max-statements: 0 */
const path = require("path");
const webpack = require("./webpack.config.nwjs.test");
module.exports = function (config) {
config.set({
browsers: ["NWJS"],
frameworks: ["nodewebkit-mocha"],
files: ["test/**/*.ts"],
preprocessors: { "test/**/*.ts": ["webpack", "sourcemap", "espower"] },
reporters: ["mocha"],
webpack,
coverageReporter: {
reporters: [{ type: "html" }, { type: "lcov" }, { type: "text" }, { type: "text-summary" }],
},
NWJSConfig: {
copy: {
// karma-nwjs-launcherの挙動上ないと動かない
base: path.resolve("."),
items: ["package.json"], // 1つ以上の実在ファイル
},
},
});
};