supertape 12.10.2 → 12.10.4

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.13, v12.10.4
2
+
3
+ fix:
4
+ - d6eb18f supertape: exports: bin: supertape -> tracer
5
+ - c49dd22 supertape: exports: supertape -> tracer
6
+
7
+ 2026.03.11, v12.10.3
8
+
9
+ feature:
10
+ - 1495bec supertape: improve types: only, skip
11
+
1
12
  2026.03.11, v12.10.2
2
13
 
3
14
  feature:
@@ -38,22 +38,24 @@ export type TestOptions = {
38
38
  timeout?: number;
39
39
  };
40
40
 
41
- export interface TestFunction<T extends Test = Test> {
42
- (message: string, fn: (t: T) => void, options?: TestOptions): void;
41
+ export type TestFunction<T extends Test = Test> = ((message: string, fn: (t: T) => void, options?: TestOptions) => void) & {
43
42
  skip: TestFunction<T>;
44
43
  only: TestFunction<T>;
45
- }
44
+ };
46
45
 
47
46
  export let test: TestFunction<Test>;
48
47
 
49
48
  export default test;
50
49
 
51
- export type OperatorFactory<T extends OperatorFn = OperatorFn> = (operator: Test) => T;
50
+ export type OperatorFactory<T extends (...args: any[]) => OperationResult = (...args: any[]) => OperationResult> = (operator: Test) => T;
52
51
 
53
52
  export type CustomOperator = Record<string, OperatorFactory>;
54
53
 
55
54
  type OperatorsToMethods<T extends CustomOperator> = {
56
- [K in keyof T]: ReturnType<T[K]>;
55
+ [K in keyof T]:
56
+ T[K] extends (...args: any[]) => infer R
57
+ ? R
58
+ : never;
57
59
  };
58
60
 
59
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.2",
3
+ "version": "12.10.4",
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",