grunt-contrib-qunit
Advanced tools
Comparing version 9.1.1 to 10.0.0
@@ -10,3 +10,5 @@ /* | ||
/* global QUnit:true */ | ||
(function (factory) { | ||
(function() { | ||
'use strict'; | ||
if (window.self !== window.top) { | ||
@@ -16,9 +18,2 @@ // Ignore iframes. https://github.com/gruntjs/grunt-contrib-qunit/issues/202 | ||
} | ||
if (typeof define === 'function' && define.amd) { | ||
require(['qunit'], factory); | ||
} else { | ||
factory(QUnit); | ||
} | ||
}(function(QUnit) { | ||
'use strict'; | ||
@@ -142,2 +137,2 @@ var lastMessage = performance.now(); | ||
}); | ||
})); | ||
}()); |
{ | ||
"name": "grunt-contrib-qunit", | ||
"description": "Run QUnit unit tests in a headless Chrome instance", | ||
"version": "9.1.1", | ||
"version": "10.0.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Grunt Team", |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-qunit v9.1.1 [![Build Status](https://github.com/gruntjs/grunt-contrib-qunit/workflows/Tests/badge.svg)](https://github.com/gruntjs/grunt-contrib-qunit/actions?workflow=Tests) | ||
# grunt-contrib-qunit v10.0.0 [![Build Status](https://github.com/gruntjs/grunt-contrib-qunit/workflows/Tests/badge.svg)](https://github.com/gruntjs/grunt-contrib-qunit/actions?workflow=Tests) | ||
@@ -238,5 +238,2 @@ > Run QUnit unit tests in a headless Chrome instance | ||
#### Loading QUnit with AMD | ||
When using AMD to load QUnit and your tests, make sure to have a path for the `qunit` module defined. | ||
#### Events and reporting | ||
@@ -279,2 +276,3 @@ QUnit events are forwarded to Grunt's event system, enabling you to build custom reporting tools. Please refer to the QUnit API documentation on [QUnit events](https://qunitjs.com/api/callbacks/QUnit.on/) and [QUnit callbacks](https://qunitjs.com/api/callbacks/) for when and what data is exposed from these events. | ||
* 2024-06-18βββv10.0.0βββRemove support for delaying qunit.js via RequireJS. AMD continues to be supported for loading source code and tests, but load qunit.js in its own script before RequireJS, and reference QUnit directly. Examples on [qunitjs.com](https://qunitjs.com/api/config/autostart/). | ||
* 2024-06-11βββv9.1.1βββRemove dependency on `p-each-series` package. | ||
@@ -281,0 +279,0 @@ * 2024-06-11βββv9.1.0βββRe-introduce `qunit.log` Grunt event. |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
33916
4
506
318