supertape 12.10.3 → 12.10.5

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 CHANGED
@@ -1,3 +1,14 @@
1
+ 2026.03.14, v12.10.5
2
+
3
+ fix:
4
+ - 4acfaa1 supertape: diff: cut: Array -> Array [
5
+
6
+ 2026.03.13, v12.10.4
7
+
8
+ fix:
9
+ - d6eb18f supertape: exports: bin: supertape -> tracer
10
+ - c49dd22 supertape: exports: supertape -> tracer
11
+
1
12
  2026.03.11, v12.10.3
2
13
 
3
14
  feature:
package/lib/diff.js CHANGED
@@ -4,8 +4,8 @@ import {formatOutput, addSpaces} from './format.js';
4
4
 
5
5
  export default (a, b) => {
6
6
  const diffed = diff(a, b)
7
- .replaceAll('Object ', '')
8
- .replaceAll('Array ', '');
7
+ .replaceAll('Object {', '{')
8
+ .replaceAll('Array [', '[');
9
9
 
10
10
  let striped = diffed;
11
11
 
@@ -38,24 +38,24 @@ export type TestOptions = {
38
38
  timeout?: number;
39
39
  };
40
40
 
41
- export type TestFunction<T extends Test = Test> =
42
- ((message: string, fn: (t: T) => void, options?: TestOptions) => void) & {
43
- skip: TestFunction<T>;
44
- only: TestFunction<T>;
45
- };
41
+ export type TestFunction<T extends Test = Test> = ((message: string, fn: (t: T) => void, options?: TestOptions) => void) & {
42
+ skip: TestFunction<T>;
43
+ only: TestFunction<T>;
44
+ };
46
45
 
47
46
  export let test: TestFunction<Test>;
48
47
 
49
48
  export default test;
50
49
 
51
- export type OperatorFactory<
52
- T extends (...args: any[]) => OperationResult = (...args: any[]) => OperationResult,
53
- > = (operator: Test) => T;
50
+ export type OperatorFactory<T extends (...args: any[]) => OperationResult = (...args: any[]) => OperationResult> = (operator: Test) => T;
54
51
 
55
52
  export type CustomOperator = Record<string, OperatorFactory>;
56
53
 
57
54
  type OperatorsToMethods<T extends CustomOperator> = {
58
- [K in keyof T]: T[K] extends (...args: any[]) => infer R ? R : never;
55
+ [K in keyof T]:
56
+ T[K] extends (...args: any[]) => infer R
57
+ ? R
58
+ : never;
59
59
  };
60
60
 
61
61
  export declare function extend<T extends CustomOperator>(operators: T): TestFunction<Test & OperatorsToMethods<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "12.10.3",
3
+ "version": "12.10.5",
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",
@@ -8,7 +8,7 @@
8
8
  "main": "./lib/supertape.js",
9
9
  "exports": {
10
10
  ".": "./lib/supertape.js",
11
- "./bin/supertape": "./bin/supertape.js",
11
+ "./bin/supertape": "./bin/tracer.js",
12
12
  "./cli": "./lib/cli.js",
13
13
  "./exit-codes": "./lib/exit-codes.js",
14
14
  "./css": "./lib/loader/register.js",