forked from APIDevTools/json-schema-ref-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
32 lines (29 loc) · 877 Bytes
/
karma.conf.js
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
31
32
// Karma config
// https://karma-runner.github.io/0.12/config/configuration-file.html
// https://jstools.dev/karma-config/
"use strict";
const { karmaConfig } = require("karma-config");
let exclude = [];
if (process.env.WINDOWS && process.env.CI) {
// We're running in a Windows CI/CD environment, so Karma-Config will use SauceLabs.
// The following tests tend to fail on SauceLabs, probably due to zero-byte files
// and special characters in the paths. So, exclude them.
exclude.push(
"test/specs/__*/**",
"test/specs/blank/**/*.spec.js",
"test/specs/circular*/**/*.spec.js",
"test/specs/empty/**/*.spec.js",
"test/specs/invalid/**/*.spec.js",
"test/specs/parsers/**/*.spec.js"
);
}
module.exports = karmaConfig({
sourceDir: "lib",
fixtures: "test/fixtures/**/*.js",
browsers: {
ie: true,
},
config: {
exclude,
}
});