vitest 0.5.6 → 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/LICENSE.md +0 -7
- package/dist/{chunk-api-setup.ab3a8330.js → chunk-api-setup.6f91f7b5.js} +4 -4
- package/dist/chunk-defaults.366529f7.js +1390 -0
- package/dist/{chunk-install-pkg.7ce2052a.js → chunk-install-pkg.c2f386d1.js} +4 -4
- package/dist/{chunk-integrations-globals.9bda85f1.js → chunk-integrations-globals.cf9f400d.js} +5 -5
- package/dist/{chunk-runtime-chain.d86ab074.js → chunk-runtime-chain.2a787014.js} +3 -3
- package/dist/{chunk-runtime-hooks.aef17670.js → chunk-runtime-hooks.d42c0b7c.js} +2 -2
- package/dist/chunk-utils-base.68f100c1.js +225 -0
- package/dist/{chunk-utils-source-map.be2b14e2.js → chunk-utils-source-map.38ddd54e.js} +2 -2
- package/dist/chunk-vite-node-externalize.328676bc.js +10799 -0
- package/dist/{chunk-vite-node-utils.952694b8.js → chunk-vite-node-utils.f2f4fe4b.js} +2 -2
- package/dist/cli.js +20 -12
- package/dist/config.d.ts +2 -1
- package/dist/entry.js +15 -12
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -4
- package/dist/node.d.ts +2 -1
- package/dist/node.js +8 -8
- package/dist/vendor-index.91d2a0e5.js +1109 -0
- package/dist/worker.js +3 -3
- package/package.json +6 -6
- package/dist/chunk-defaults.8ca84d7b.js +0 -1833
- package/dist/chunk-utils-base.39767f3e.js +0 -225
- package/dist/chunk-vite-node-externalize.e6096d90.js +0 -10515
- package/dist/vendor-index.f6809970.js +0 -1111
package/dist/index.d.ts
CHANGED
|
@@ -245,7 +245,7 @@ interface ViteNodeServerOptions {
|
|
|
245
245
|
*/
|
|
246
246
|
deps?: DepsHandlingOptions;
|
|
247
247
|
/**
|
|
248
|
-
*
|
|
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.
|
|
2
|
-
export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './chunk-runtime-hooks.
|
|
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.
|
|
6
|
+
import './chunk-utils-base.68f100c1.js';
|
|
7
7
|
import 'tty';
|
|
8
8
|
import 'local-pkg';
|
|
9
|
-
import './chunk-utils-source-map.
|
|
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
|
-
*
|
|
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,29 +1,29 @@
|
|
|
1
|
-
export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.
|
|
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.
|
|
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.
|
|
15
|
+
import './chunk-utils-base.68f100c1.js';
|
|
16
16
|
import 'tty';
|
|
17
17
|
import 'local-pkg';
|
|
18
18
|
import './vendor-index.76be1f4d.js';
|
|
19
19
|
import 'vite';
|
|
20
20
|
import './chunk-constants.a1a50d89.js';
|
|
21
|
-
import './chunk-vite-node-utils.
|
|
21
|
+
import './chunk-vite-node-utils.f2f4fe4b.js';
|
|
22
22
|
import 'module';
|
|
23
23
|
import 'vm';
|
|
24
|
-
import './chunk-defaults.
|
|
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';
|