vitest 0.5.8 → 0.5.9

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
@@ -245,7 +245,7 @@ interface ViteNodeServerOptions {
245
245
  */
246
246
  deps?: DepsHandlingOptions;
247
247
  /**
248
- * Tranform method for modules
248
+ * Transform method for modules
249
249
  */
250
250
  transformMode?: {
251
251
  ssr?: RegExp[];
@@ -349,6 +349,7 @@ declare class Vitest {
349
349
  report<T extends keyof Reporter>(name: T, ...args: ArgumentsType$1<Reporter[T]>): Promise<void>;
350
350
  globTestFiles(filters?: string[]): Promise<string[]>;
351
351
  isTargetFile(id: string): boolean;
352
+ printError(err: unknown): Promise<void>;
352
353
  onServerRestarted(fn: () => void): void;
353
354
  }
354
355
 
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- export { d as describe, i as it, c as suite, t as test, e as vi, v as vitest } from './chunk-runtime-chain.d86ab074.js';
2
- export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './chunk-runtime-hooks.aef17670.js';
1
+ export { d as describe, i as it, c as suite, t as test, e as vi, v as vitest } from './chunk-runtime-chain.2a787014.js';
2
+ export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './chunk-runtime-hooks.d42c0b7c.js';
3
3
  export { fn, isMockFunction, spies, spyOn } from './jest-mock.js';
4
4
  export { assert, default as chai, should } from 'chai';
5
5
  import 'util';
6
- import './chunk-utils-base.39767f3e.js';
6
+ import './chunk-utils-base.68f100c1.js';
7
7
  import 'tty';
8
8
  import 'local-pkg';
9
- import './chunk-utils-source-map.be2b14e2.js';
9
+ import './chunk-utils-source-map.38ddd54e.js';
10
10
  import './vendor-_commonjsHelpers.91d4f591.js';
11
11
  import 'tinyspy';
12
12
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OyJ9
package/dist/node.d.ts CHANGED
@@ -43,7 +43,7 @@ interface ViteNodeServerOptions {
43
43
  */
44
44
  deps?: DepsHandlingOptions;
45
45
  /**
46
- * Tranform method for modules
46
+ * Transform method for modules
47
47
  */
48
48
  transformMode?: {
49
49
  ssr?: RegExp[];
@@ -878,6 +878,7 @@ declare class Vitest {
878
878
  report<T extends keyof Reporter>(name: T, ...args: ArgumentsType<Reporter[T]>): Promise<void>;
879
879
  globTestFiles(filters?: string[]): Promise<string[]>;
880
880
  isTargetFile(id: string): boolean;
881
+ printError(err: unknown): Promise<void>;
881
882
  onServerRestarted(fn: () => void): void;
882
883
  }
883
884
 
package/dist/node.js CHANGED
@@ -1,18 +1,18 @@
1
- export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.fcce9ced.js';
1
+ export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.328676bc.js';
2
2
  import 'buffer';
3
3
  import 'path';
4
4
  import 'child_process';
5
5
  import 'process';
6
- import './vendor-index.f6809970.js';
6
+ import './vendor-index.91d2a0e5.js';
7
7
  import './vendor-_commonjsHelpers.91d4f591.js';
8
8
  import 'fs';
9
- import 'assert';
10
- import 'events';
11
9
  import 'stream';
12
10
  import 'util';
11
+ import 'assert';
12
+ import 'events';
13
13
  import 'url';
14
14
  import 'os';
15
- import './chunk-utils-base.39767f3e.js';
15
+ import './chunk-utils-base.68f100c1.js';
16
16
  import 'tty';
17
17
  import 'local-pkg';
18
18
  import './vendor-index.76be1f4d.js';
@@ -21,9 +21,9 @@ import './chunk-constants.a1a50d89.js';
21
21
  import './chunk-vite-node-utils.f2f4fe4b.js';
22
22
  import 'module';
23
23
  import 'vm';
24
- import './chunk-defaults.99570caf.js';
25
- import './chunk-utils-source-map.be2b14e2.js';
24
+ import './chunk-defaults.366529f7.js';
26
25
  import 'perf_hooks';
26
+ import './chunk-utils-source-map.38ddd54e.js';
27
27
  import 'worker_threads';
28
28
  import 'tinypool';
29
29
  import './chunk-magic-string.6c8f4a10.js';