karma-qunit
Advanced tools
Comparing version 0.1.5 to 0.1.6
(function(window) { | ||
function createQUnitConfig (karma, defaultConfig) { // eslint-disable-line no-unused-vars | ||
var config = defaultConfig || {} | ||
if (!karma.config || !karma.config.qunit) { | ||
return {} | ||
} | ||
for (var key in karma.config.qunit) { | ||
config[key] = karma.config.qunit[key] | ||
} | ||
return config | ||
} | ||
function createQUnitStartFn (tc, runnerPassedIn) { // eslint-disable-line no-unused-vars | ||
@@ -92,4 +106,10 @@ return function () { | ||
window.QUnit.config.autostart = false; | ||
var config = createQUnitConfig(window.__karma__, { | ||
autostart: false | ||
}); | ||
for (var key in config) { | ||
window.QUnit.config[key] = config[key]; | ||
} | ||
if (window.removeEventListener) { | ||
@@ -96,0 +116,0 @@ window.removeEventListener('load', window.QUnit.load, false); |
{ | ||
"name": "karma-qunit", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A Karma plugin. Adapter for QUnit testing framework.", | ||
@@ -45,9 +45,8 @@ "main": "lib/index.js", | ||
"contributors": [ | ||
"Matt DuVall <matt@stripe.com>", | ||
"Friedel Ziegelmayer <friedel.ziegelmayer@gmail.com>", | ||
"dignifiedquire <dignifiedquire@gmail.com>", | ||
"Friedel Ziegelmayer <dignifiedquire@gmail.com>", | ||
"Aymeric Beaumet <aymeric@beaumet.me>", | ||
"Friedel Ziegelmayer <dignifiedquire@gmail.com>", | ||
"Marcin Szczepanski <mszczepanski@atlassian.com>", | ||
"Sahat Yalkabov <sakhat@gmail.com>", | ||
"Timo Tijhof <krinklemail@gmail.com>", | ||
"dignifiedquire <dignifiedquire@gmail.com>", | ||
"Aymeric Beaumet <aymeric.beaumet@gmail.com>", | ||
@@ -57,4 +56,6 @@ "thenickcox <nick@nickcox.me>", | ||
"Daniel Herman <daniel.c.herman@gmail.com>", | ||
"Kristof Neirynck <k.neirynck@gmail.com>" | ||
"Kristof Neirynck <k.neirynck@gmail.com>", | ||
"Marcin Szczepanski <mszczepanski@atlassian.com>", | ||
"Sahat Yalkabov <sakhat@gmail.com>" | ||
] | ||
} |
@@ -37,2 +37,24 @@ # karma-qunit | ||
You can also pass options for `QUnit.config` (documented [here](https://api.qunitjs.com/QUnit.config/)) as such: | ||
```js | ||
/// karma.conf.js | ||
module.exports = function (config) { | ||
config.set({ | ||
frameworks: ['qunit'], | ||
plugins: ['karma-qunit'], | ||
files: [ | ||
'*.js' | ||
], | ||
// client configuration | ||
client: { | ||
qunit: { | ||
testTimeout: 5000 | ||
} | ||
} | ||
}) | ||
} | ||
``` | ||
---- | ||
@@ -39,0 +61,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8345
115
64
0