-
Notifications
You must be signed in to change notification settings - Fork 138
/
karma.conf.cjs
48 lines (43 loc) · 1.45 KB
/
karma.conf.cjs
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Karma configuration
// Generated on Sun Feb 20 2022 00:57:11 GMT+0100 (Central European Standard Time)
let pkg = require("./package.json");
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
plugins: ["karma-chai", "karma-mocha", "karma-spec-reporter"],
files: [
{ pattern: 'samples/**/*.ics', included: false },
{ pattern: 'test/parser/*', included: false },
{ pattern: 'lib/ical/*.js', type: 'module', included: false },
{ pattern: 'test/*_test.js', included: false },
{ pattern: 'test/acceptance/*_test.js', included: false },
{ pattern: 'test/support/helper.js', type: "module", included: true },
],
client: { mocha: Object.assign(pkg.mocha, { timeout: 0 }) },
reporters: ['spec'],
port: 9876,
colors: true,
autoWatch: false,
singleRun: true,
concurrency: Infinity,
captureTimeout: 240000,
browserNoActivityTimeout: 120000,
//browsers: ['Firefox'],
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO
});
if (process.env.GITHUB_ACTIONS) {
config.set({
exitOnFailure: false,
customLaunchers: pkg.saucelabs,
browsers: Object.keys(pkg.saucelabs),
reporters: ['saucelabs', 'spec'],
sauceLabs: {
testName: 'ICAL.js',
startConnect: true
}
});
}
};