qunitx 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/.dockerignore +0 -1
- package/build.js +0 -54
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qunitx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.2",
|
|
5
5
|
"description": "A universal test framework for testing any js file on node.js, browser or deno with QUnit API",
|
|
6
6
|
"author": "Izel Nakri",
|
|
7
7
|
"license": "MIT",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"prettier": "^3.0.0",
|
|
57
57
|
"qunit": "^2.19.4",
|
|
58
58
|
"qunitx": "^0.8.0",
|
|
59
|
-
"qunitx-cli": "^0.0
|
|
59
|
+
"qunitx-cli": "^0.1.0",
|
|
60
60
|
"release-it": "^16.1.0",
|
|
61
61
|
"ts-node": ">=10.7.0"
|
|
62
62
|
},
|
package/.dockerignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
node_modules
|
package/build.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import fs from 'fs/promises';
|
|
2
|
-
|
|
3
|
-
let [qunitJS, qunitCSS, _] = await Promise.all([
|
|
4
|
-
fs.readFile('./node_modules/qunit/qunit/qunit.js'),
|
|
5
|
-
fs.readFile('./node_modules/qunit/qunit/qunit.css'),
|
|
6
|
-
fs.mkdir('./vendor', { recursive: true })
|
|
7
|
-
]);
|
|
8
|
-
|
|
9
|
-
let newQUnit = qunitJS.toString().replace(
|
|
10
|
-
'start: function start(count) {',
|
|
11
|
-
`reset: function() {
|
|
12
|
-
ProcessingQueue.finished = false;
|
|
13
|
-
globalStartCalled = false;
|
|
14
|
-
runStarted = false;
|
|
15
|
-
|
|
16
|
-
config.queue.length = 0;
|
|
17
|
-
config.modules.length = 0;
|
|
18
|
-
config.autostart = false;
|
|
19
|
-
|
|
20
|
-
Object.assign(config.stats, { total: 0, passed: 0, failed: 0, skipped: 0, todo: 0 });
|
|
21
|
-
|
|
22
|
-
[
|
|
23
|
-
"started", "updateRate", "filter", "depth", "current",
|
|
24
|
-
"pageLoaded", "timeoutHandler", "timeout", "pollution"
|
|
25
|
-
].forEach( ( key ) => delete config[ key ] );
|
|
26
|
-
|
|
27
|
-
const suiteReport = config.currentModule.suiteReport;
|
|
28
|
-
|
|
29
|
-
suiteReport.childSuites.length = 0;
|
|
30
|
-
delete suiteReport._startTime;
|
|
31
|
-
delete suiteReport._endTime;
|
|
32
|
-
|
|
33
|
-
config.modules.push( config.currentModule );
|
|
34
|
-
},
|
|
35
|
-
start: function start(count) {`);
|
|
36
|
-
|
|
37
|
-
await Promise.all([
|
|
38
|
-
fs.writeFile('./vendor/qunit.js', newQUnit),
|
|
39
|
-
fs.writeFile('./vendor/qunit.css', qunitCSS),
|
|
40
|
-
createPackageJSONIfNotExists()
|
|
41
|
-
]);
|
|
42
|
-
|
|
43
|
-
async function createPackageJSONIfNotExists() {
|
|
44
|
-
try {
|
|
45
|
-
await fs.stat('./vendor/package.json');
|
|
46
|
-
|
|
47
|
-
return true;
|
|
48
|
-
} catch (error) {
|
|
49
|
-
await fs.writeFile('./vendor/package.json', JSON.stringify({
|
|
50
|
-
name: 'qunitx-vendor',
|
|
51
|
-
version: '0.0.1'
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
}
|