Skip to content

Commit c3498f4

Browse files
author
Abilash Badri
committed
(chore) Update npm dependencies and remove deprecared packages
1. Upgrade karma, qunit 2. Migrate qunit tests from v1 to v2 using codemod 3. Replace esperanto with rollup
1 parent 4aa7a1c commit c3498f4

14 files changed

+7704
-2714
lines changed

fake_xml_http_request.js

+8-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fake_xml_http_request.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

karma.conf.js

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,39 @@
11
// Karma configuration
2-
// Generated on Sat Oct 05 2013 08:44:16 GMT-0500 (CDT)
2+
// Generated on Mon Mar 08 2021 12:58:46 GMT-0800 (Pacific Standard Time)
33

44
module.exports = function(config) {
55
config.set({
66

7-
// base path, that will be used to resolve files and exclude
7+
// base path that will be used to resolve all patterns (eg. files, exclude)
88
basePath: '',
99

1010

1111
// frameworks to use
12+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
1213
frameworks: ['qunit'],
1314

1415

1516
// list of files / patterns to load in the browser
1617
files: [
17-
'fake_xml_http_request.js',
18+
'./fake_xml_http_request.js',
1819
'test/**/*_test.js'
1920
],
2021

2122

22-
// list of files to exclude
23+
// list of files / patterns to exclude
2324
exclude: [
24-
2525
],
2626

2727

28+
// preprocess matching files before serving them to the browser
29+
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
30+
preprocessors: {
31+
},
32+
33+
2834
// test results reporter to use
29-
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
35+
// possible values: 'dots', 'progress'
36+
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
3037
reporters: ['progress'],
3138

3239

@@ -47,23 +54,17 @@ module.exports = function(config) {
4754
autoWatch: true,
4855

4956

50-
// Start these browsers, currently available:
51-
// - Chrome
52-
// - ChromeCanary
53-
// - Firefox
54-
// - Opera
55-
// - Safari (only Mac)
56-
// - PhantomJS
57-
// - IE (only Windows)
57+
// start these browsers
58+
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
5859
browsers: ['Chrome', 'PhantomJS'],
5960

6061

61-
// If browser does not capture in given timeout [ms], kill it
62-
captureTimeout: 60000,
63-
64-
6562
// Continuous Integration mode
66-
// if true, it capture browsers, run tests and exit
67-
singleRun: false
68-
});
69-
};
63+
// if true, Karma captures browsers, runs the tests and exits
64+
singleRun: false,
65+
66+
// Concurrency level
67+
// how many browser should be started simultaneous
68+
concurrency: Infinity
69+
})
70+
}

0 commit comments

Comments
 (0)