supertape 10.3.0 → 10.5.0
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/ChangeLog +11 -0
- package/bin/communication.mjs +1 -4
- package/lib/cli.js +13 -3
- package/lib/diff.mjs +1 -4
- package/lib/operators.mjs +4 -7
- package/lib/supertape.d.ts +1 -4
- package/package.json +1 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
2024.03.22, v10.5.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- b4e7436 supertape: when cannot import parallel, try series (nodejs/node#52187)
|
|
5
|
+
- ebb9d46 supertape: remove dependency on deep-equal (#10)
|
|
6
|
+
|
|
7
|
+
2024.03.07, v10.4.0
|
|
8
|
+
|
|
9
|
+
feature:
|
|
10
|
+
- ebb9d46 supertape: remove dependency on deep-equal
|
|
11
|
+
|
|
1
12
|
2024.03.01, v10.3.0
|
|
2
13
|
|
|
3
14
|
feature:
|
package/bin/communication.mjs
CHANGED
package/lib/cli.js
CHANGED
|
@@ -137,9 +137,14 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter}) {
|
|
|
137
137
|
const promises = [];
|
|
138
138
|
const files = removeDuplicates(allFiles);
|
|
139
139
|
|
|
140
|
+
const resolvedNames = [];
|
|
141
|
+
|
|
142
|
+
// always resolve before import for windows
|
|
140
143
|
for (const file of files) {
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
resolvedNames.push(pathToFileURL(resolvePath(cwd, file)));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
for (const resolved of resolvedNames) {
|
|
143
148
|
promises.push(simpleImport(resolved));
|
|
144
149
|
}
|
|
145
150
|
|
|
@@ -148,7 +153,12 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter}) {
|
|
|
148
153
|
if (!promises.length)
|
|
149
154
|
return OK;
|
|
150
155
|
|
|
151
|
-
await Promise.all(promises);
|
|
156
|
+
const [importError] = await tryToCatch(Promise.all.bind(Promise), promises);
|
|
157
|
+
|
|
158
|
+
if (importError)
|
|
159
|
+
for (const resolved of resolvedNames)
|
|
160
|
+
await simpleImport(resolved);
|
|
161
|
+
|
|
152
162
|
const [result] = await once(supertape.run(), 'end');
|
|
153
163
|
|
|
154
164
|
return result;
|
package/lib/diff.mjs
CHANGED
package/lib/operators.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {isDeepStrictEqual} from 'node:util';
|
|
2
2
|
import diff from './diff.mjs';
|
|
3
|
-
import {
|
|
4
|
-
formatOutput,
|
|
5
|
-
parseAt,
|
|
6
|
-
} from './format.js';
|
|
3
|
+
import {formatOutput, parseAt} from './format.js';
|
|
7
4
|
|
|
8
5
|
const {entries} = Object;
|
|
9
6
|
const isAsync = (a) => a[Symbol.toStringTag] === 'AsyncFunction';
|
|
@@ -119,7 +116,7 @@ const fail = (error, at) => ({
|
|
|
119
116
|
});
|
|
120
117
|
|
|
121
118
|
const deepEqual = (result, expected, message = 'should deep equal') => {
|
|
122
|
-
const is =
|
|
119
|
+
const is = isDeepStrictEqual(result, expected);
|
|
123
120
|
const output = is ? '' : diff(expected, result);
|
|
124
121
|
|
|
125
122
|
return {
|
|
@@ -132,7 +129,7 @@ const deepEqual = (result, expected, message = 'should deep equal') => {
|
|
|
132
129
|
};
|
|
133
130
|
|
|
134
131
|
const notDeepEqual = (result, expected, message = 'should not deep equal') => {
|
|
135
|
-
const is = !
|
|
132
|
+
const is = !isDeepStrictEqual(result, expected);
|
|
136
133
|
const output = is ? '' : diff(expected, result);
|
|
137
134
|
|
|
138
135
|
return {
|
package/lib/supertape.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.5.0",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "📼 Supertape simplest high speed test runner with superpowers",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/supertape",
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"@supertape/formatter-time": "^1.0.0",
|
|
52
52
|
"@supertape/operator-stub": "^3.0.0",
|
|
53
53
|
"cli-progress": "^3.8.2",
|
|
54
|
-
"deep-equal": "^2.0.3",
|
|
55
54
|
"fullstore": "^3.0.0",
|
|
56
55
|
"glob": "^10.3.10",
|
|
57
56
|
"jest-diff": "^29.0.1",
|