vitest 0.0.135 → 0.0.136
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/dist/cli.js +4 -4
- package/dist/index-0b823579.js +8588 -0
- package/dist/index.d.ts +15 -3
- package/dist/node.d.ts +15 -3
- package/dist/node.js +1 -1
- package/dist/{setup-a9c8349a.js → setup-6bff359f.js} +2 -2
- package/package.json +2 -2
- package/dist/index-9e44ed60.js +0 -8544
package/dist/index.d.ts
CHANGED
|
@@ -386,9 +386,14 @@ declare class VerboseReporter extends DefaultReporter {
|
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
declare class TapReporter implements Reporter {
|
|
389
|
-
|
|
389
|
+
protected ctx: Vitest;
|
|
390
|
+
onInit(ctx: Vitest): void;
|
|
391
|
+
protected logTasks(tasks: Task[], currentIdent: string): void;
|
|
392
|
+
onFinished(files?: File[]): Promise<void>;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
declare class TapFlatReporter extends TapReporter {
|
|
390
396
|
onInit(ctx: Vitest): void;
|
|
391
|
-
logTasks(tasks: Task[], currentIdent: string): void;
|
|
392
397
|
onFinished(files?: File[]): Promise<void>;
|
|
393
398
|
}
|
|
394
399
|
|
|
@@ -397,6 +402,7 @@ declare const ReportersMap: {
|
|
|
397
402
|
verbose: typeof VerboseReporter;
|
|
398
403
|
dot: typeof DotReporter;
|
|
399
404
|
tap: typeof TapReporter;
|
|
405
|
+
'tap-flat': typeof TapFlatReporter;
|
|
400
406
|
};
|
|
401
407
|
declare type BuiltinReporters = keyof typeof ReportersMap;
|
|
402
408
|
|
|
@@ -886,7 +892,13 @@ interface InlineConfig {
|
|
|
886
892
|
* Open Vitest UI
|
|
887
893
|
* @internal WIP
|
|
888
894
|
*/
|
|
889
|
-
|
|
895
|
+
ui?: boolean;
|
|
896
|
+
/**
|
|
897
|
+
* Base url for the UI
|
|
898
|
+
*
|
|
899
|
+
* @default '/__vitest__/'
|
|
900
|
+
*/
|
|
901
|
+
uiBase?: string;
|
|
890
902
|
}
|
|
891
903
|
interface UserConfig extends InlineConfig {
|
|
892
904
|
/**
|
package/dist/node.d.ts
CHANGED
|
@@ -69,9 +69,14 @@ declare class VerboseReporter extends DefaultReporter {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
declare class TapReporter implements Reporter {
|
|
72
|
-
|
|
72
|
+
protected ctx: Vitest;
|
|
73
|
+
onInit(ctx: Vitest): void;
|
|
74
|
+
protected logTasks(tasks: Task[], currentIdent: string): void;
|
|
75
|
+
onFinished(files?: File[]): Promise<void>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class TapFlatReporter extends TapReporter {
|
|
73
79
|
onInit(ctx: Vitest): void;
|
|
74
|
-
logTasks(tasks: Task[], currentIdent: string): void;
|
|
75
80
|
onFinished(files?: File[]): Promise<void>;
|
|
76
81
|
}
|
|
77
82
|
|
|
@@ -80,6 +85,7 @@ declare const ReportersMap: {
|
|
|
80
85
|
verbose: typeof VerboseReporter;
|
|
81
86
|
dot: typeof DotReporter;
|
|
82
87
|
tap: typeof TapReporter;
|
|
88
|
+
'tap-flat': typeof TapFlatReporter;
|
|
83
89
|
};
|
|
84
90
|
declare type BuiltinReporters = keyof typeof ReportersMap;
|
|
85
91
|
|
|
@@ -594,7 +600,13 @@ interface InlineConfig {
|
|
|
594
600
|
* Open Vitest UI
|
|
595
601
|
* @internal WIP
|
|
596
602
|
*/
|
|
597
|
-
|
|
603
|
+
ui?: boolean;
|
|
604
|
+
/**
|
|
605
|
+
* Base url for the UI
|
|
606
|
+
*
|
|
607
|
+
* @default '/__vitest__/'
|
|
608
|
+
*/
|
|
609
|
+
uiBase?: string;
|
|
598
610
|
}
|
|
599
611
|
interface UserConfig extends InlineConfig {
|
|
600
612
|
/**
|
package/dist/node.js
CHANGED