vitest 0.1.26 → 0.1.27

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/index.d.ts CHANGED
@@ -1082,6 +1082,7 @@ interface WorkerRPC {
1082
1082
  fetch: FetchFunction;
1083
1083
  resolveId: ResolveIdFunction;
1084
1084
  getSourceMap: (id: string, force?: boolean) => Promise<RawSourceMap | undefined>;
1085
+ onFinished: (files: File[]) => void;
1085
1086
  onWorkerExit: (code?: number) => void;
1086
1087
  onUserConsoleLog: (log: UserConsoleLog) => void;
1087
1088
  onCollected: (files: File[]) => void;
@@ -1277,9 +1278,9 @@ interface WebSocketHandlers {
1277
1278
  readFile(id: string): Promise<string>;
1278
1279
  writeFile(id: string, content: string): Promise<void>;
1279
1280
  rerun(files: string[]): Promise<void>;
1280
- updateSnapshot(file: File): Promise<void>;
1281
+ updateSnapshot(file?: File): Promise<void>;
1281
1282
  }
1282
- interface WebSocketEvents extends Pick<Reporter, 'onCollected' | 'onTaskUpdate' | 'onUserConsoleLog'> {
1283
+ interface WebSocketEvents extends Pick<Reporter, 'onCollected' | 'onFinished' | 'onTaskUpdate' | 'onUserConsoleLog'> {
1283
1284
  }
1284
1285
 
1285
1286
  declare type VitestInlineConfig = InlineConfig;
package/dist/node.js CHANGED
@@ -1,4 +1,4 @@
1
- export { V as VitestPlugin, c as createVitest } from './create-f4c57d64.js';
1
+ export { V as VitestPlugin, c as createVitest } from './create-2d77f928.js';
2
2
  import './index-1964368a.js';
3
3
  import 'path';
4
4
  import 'vite';