supertape 13.5.0 → 13.5.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/ChangeLog +13 -0
- package/lib/cli.js +6 -2
- package/lib/env/index.js +2 -8
- package/lib/supertape.d.ts +1 -1
- package/package.json +1 -1
package/ChangeLog
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
2026.08.30, v13.5.2
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 5486897 supertape: env: --enable-source-maps
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- 4c2ca7a @supertape/formatter-json-lines: SUPERTAPE_JSON_LINES_FAIL: add
|
|
8
|
+
|
|
9
|
+
2026.07.24, v13.5.1
|
|
10
|
+
|
|
11
|
+
fix:
|
|
12
|
+
- 1214b76 supertape: extends: no args
|
|
13
|
+
|
|
1
14
|
2026.07.24, v13.5.0
|
|
2
15
|
|
|
3
16
|
feature:
|
package/lib/cli.js
CHANGED
|
@@ -26,6 +26,8 @@ const filesCount = fullstore(0);
|
|
|
26
26
|
const removeDuplicates = (a) => Array.from(new Set(a));
|
|
27
27
|
const isExclude = (a) => !a.includes('node_modules');
|
|
28
28
|
|
|
29
|
+
const resolveBeforeImportForWindows = ({cwd, file}) => pathToFileURL(resolvePath(cwd, file));
|
|
30
|
+
|
|
29
31
|
export default async (overrides = {}) => {
|
|
30
32
|
const {
|
|
31
33
|
argv,
|
|
@@ -166,9 +168,11 @@ async function _cli(overrides) {
|
|
|
166
168
|
|
|
167
169
|
const resolvedNames = [];
|
|
168
170
|
|
|
169
|
-
// always resolve before import for windows
|
|
170
171
|
for (const file of files) {
|
|
171
|
-
resolvedNames.push(
|
|
172
|
+
resolvedNames.push(resolveBeforeImportForWindows({
|
|
173
|
+
cwd,
|
|
174
|
+
file,
|
|
175
|
+
}));
|
|
172
176
|
}
|
|
173
177
|
|
|
174
178
|
if (!args.dryRun)
|
package/lib/env/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const addLoader = (a) => `--import @supertape/loader-${a}`;
|
|
|
8
8
|
|
|
9
9
|
const parseValue = (a) => {
|
|
10
10
|
if (isBool(a))
|
|
11
|
-
return a
|
|
11
|
+
return Number(a);
|
|
12
12
|
|
|
13
13
|
return a;
|
|
14
14
|
};
|
|
@@ -17,7 +17,7 @@ export const defineEnv = (config, overrides = {}) => {
|
|
|
17
17
|
const {env = process.env} = overrides;
|
|
18
18
|
const {NODE_OPTIONS = ''} = env;
|
|
19
19
|
const result = {};
|
|
20
|
-
let localEnv = NODE_OPTIONS
|
|
20
|
+
let localEnv = `${NODE_OPTIONS} --enable-source-maps`;
|
|
21
21
|
|
|
22
22
|
for (const [key, value] of entries(config)) {
|
|
23
23
|
if (key === 'css' && value) {
|
|
@@ -27,27 +27,21 @@ export const defineEnv = (config, overrides = {}) => {
|
|
|
27
27
|
|
|
28
28
|
if (key === 'jsx' && value) {
|
|
29
29
|
localEnv += ` ${addLoader('jsx')}`;
|
|
30
|
-
|
|
31
30
|
continue;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
if (key === 'dom' && value) {
|
|
35
34
|
localEnv += ` ${addLoader('dom')}`;
|
|
36
|
-
|
|
37
35
|
continue;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
if (key === 'ts' && value) {
|
|
41
39
|
localEnv += ` ${addLoader('ts')}`;
|
|
42
|
-
localEnv += ` --enable-source-maps`;
|
|
43
|
-
|
|
44
40
|
continue;
|
|
45
41
|
}
|
|
46
42
|
|
|
47
43
|
if (key === 'nestjs' && value) {
|
|
48
44
|
localEnv += ` ${addLoader('nestjs')}`;
|
|
49
|
-
localEnv += ` --enable-source-maps`;
|
|
50
|
-
|
|
51
45
|
continue;
|
|
52
46
|
}
|
|
53
47
|
|
package/lib/supertape.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export type TestOptions = {
|
|
|
41
41
|
type TestFunction<T extends Test = Test> = ((message: string, fn: (t: T) => void, options?: TestOptions) => void) & {
|
|
42
42
|
skip: TestFunction<T>;
|
|
43
43
|
only: TestFunction<T>;
|
|
44
|
-
extend<U extends CustomOperator
|
|
44
|
+
extend<U extends CustomOperator = Record<PropertyKey, never>>(operators?: U): TestFunction<T & OperatorsToMethods<U>>;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export let test: TestFunction<Test>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.2",
|
|
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",
|