Update dependencies and remove outdated ones (#722)
* Update dependencies and remove outdated ones * Add package lock file * Add minified file * Karma now uses headless browser to run QUnit * Add to readme that node and npm install is required * Update license info * Add lint-new but don't use it in CI yet
This commit is contained in:
130
karma.conf.js
130
karma.conf.js
@@ -1,18 +1,20 @@
|
||||
module.exports = function( config ) {
|
||||
config.set( {
|
||||
// Karma configuration
|
||||
// Generated on Thu Feb 28 2019 16:31:36 GMT+0100 (Central European Standard Time)
|
||||
process.env.CHROME_BIN = require('puppeteer').executablePath()
|
||||
|
||||
// Base path, that will be used to resolve files and exclude
|
||||
basePath: "",
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
|
||||
// Frameworks to use
|
||||
frameworks: [ "qunit" ],
|
||||
// base path that will be used to resolve all patterns (eg. files, exclude)
|
||||
basePath: '',
|
||||
|
||||
|
||||
// frameworks to use
|
||||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
||||
frameworks: ['qunit'],
|
||||
|
||||
plugins: ['karma-firefox-launcher', 'karma-chrome-launcher', 'karma-qunit'],
|
||||
|
||||
proxies : {
|
||||
'/test/' : '/base/test/',
|
||||
'/js/' : '/base/js/',
|
||||
'/node_modules/syn/dist/' : '/base/node_modules/syn/dist/'
|
||||
},
|
||||
|
||||
// List of files / patterns to load in the browser
|
||||
files: [
|
||||
// The QUnit tests
|
||||
@@ -28,53 +30,71 @@ module.exports = function( config ) {
|
||||
{pattern: "node_modules/syn/dist/global/syn.js", watched: false, served: true, included: false}
|
||||
],
|
||||
|
||||
// List of files to exclude
|
||||
exclude: [],
|
||||
|
||||
// Test results reporter to use
|
||||
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
|
||||
reporters: [ "progress" ],
|
||||
|
||||
// Web server port
|
||||
port: 9876,
|
||||
|
||||
// Enable / disable colors in the output (reporters and logs)
|
||||
colors: true,
|
||||
|
||||
// Level of logging
|
||||
// possible values: config.LOG_DISABLE || config.LOG_ERROR ||
|
||||
// config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
||||
logLevel: config.LOG_DEBUG,
|
||||
|
||||
// Enable / disable watching file and executing tests whenever any file changes
|
||||
autoWatch: true,
|
||||
|
||||
// Start these browsers, currently available:
|
||||
// - Chrome
|
||||
// - ChromeCanary
|
||||
// - Firefox
|
||||
// - Opera (has to be installed with `npm install karma-opera-launcher`)
|
||||
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
|
||||
// - PhantomJS
|
||||
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
|
||||
//browsers: [ "Chrome" ],
|
||||
//browsers: [ "Firefox" ],
|
||||
browsers: [ "Chrome", "Firefox" ],
|
||||
|
||||
proxies: {
|
||||
"/test/": "/base/test/",
|
||||
"/js/": "/base/js/",
|
||||
"/node_modules/": "/base/node_modules/"
|
||||
},
|
||||
|
||||
client: {
|
||||
clearContext: false,
|
||||
qunit: {
|
||||
showUI: true,
|
||||
testTimeout: 120*1000
|
||||
showUI: true
|
||||
}
|
||||
},
|
||||
|
||||
// If browser does not capture, or produce output, in given timeout [ms], kill it
|
||||
captureTimeout: 60*1000,
|
||||
browserNoActivityTimeout: 60*1000,
|
||||
|
||||
// list of files / patterns to exclude
|
||||
exclude: [
|
||||
],
|
||||
|
||||
|
||||
// preprocess matching files before serving them to the browser
|
||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||
preprocessors: {
|
||||
},
|
||||
|
||||
|
||||
// test results reporter to use
|
||||
// possible values: 'dots', 'progress'
|
||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
reporters: ['progress'],
|
||||
|
||||
|
||||
// web server port
|
||||
port: 9876,
|
||||
|
||||
|
||||
// enable / disable colors in the output (reporters and logs)
|
||||
colors: true,
|
||||
|
||||
|
||||
// level of logging
|
||||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
||||
logLevel: config.LOG_INFO,
|
||||
|
||||
|
||||
// enable / disable watching file and executing tests whenever any file changes
|
||||
autoWatch: true,
|
||||
|
||||
|
||||
// start these browsers
|
||||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||
browsers: ['FirefoxHeadless', 'Chrome_without_security'],
|
||||
|
||||
customLaunchers: {
|
||||
Chrome_without_security: {
|
||||
base: 'ChromeHeadless',
|
||||
flags: ['--no-sandbox']
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// Continuous Integration mode
|
||||
// if true, it capture browsers, run tests and exit
|
||||
singleRun: false
|
||||
} );
|
||||
};
|
||||
// if true, Karma captures browsers, runs the tests and exits
|
||||
singleRun: false,
|
||||
|
||||
// Concurrency level
|
||||
// how many browser should be started simultaneous
|
||||
concurrency: Infinity
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user