-
Notifications
You must be signed in to change notification settings - Fork 12
/
karma.conf.js
20 lines (17 loc) · 703 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Karma config
// https://karma-runner.github.io/0.12/config/configuration-file.html
// https://jstools.dev/karma-config/
"use strict";
const { karmaConfig } = require("@jsdevtools/karma-config");
const { host } = require("@jsdevtools/host-environment");
module.exports = karmaConfig({
sourceDir: "esm",
fixtures: "test/fixtures/**/*.js",
browsers: {
chrome: host.ci ? host.os.linux : true,
firefox: host.ci ? host.os.linux : true,
safari: host.ci ? host.os.linux : host.os.mac, // SauceLabs in CI
edge: host.ci ? host.os.linux : host.os.windows, // SauceLabs in CI
ie: host.ci ? host.os.windows : false, // IE needs to run by itself, due to Babel transforms
},
});