vitest 0.7.8 → 0.7.11
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/{chunk-api-setup.e1542e10.js → chunk-api-setup.699124b9.js} +3 -3
- package/dist/{chunk-integrations-globals.06d5e380.js → chunk-integrations-globals.0afee680.js} +3 -3
- package/dist/chunk-runtime-chain.45b5ea3a.js +7065 -0
- package/dist/chunk-utils-base.8397dafe.js +1 -1
- package/dist/{chunk-utils-path.e19c1fff.js → chunk-utils-path.bd53cafb.js} +2 -2
- package/dist/{chunk-utils-source-map.fb8852df.js → chunk-utils-timers.997e0602.js} +7 -2
- package/dist/{chunk-vite-node-externalize.dfd396ed.js → chunk-vite-node-externalize.458f885a.js} +12 -11
- package/dist/{chunk-vite-node-utils.66647e5d.js → chunk-vite-node-utils.71f7ea0f.js} +13 -9
- package/dist/cli.js +3 -3
- package/dist/entry.js +12 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/node.d.ts +2 -0
- package/dist/node.js +4 -4
- package/dist/worker.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-runtime-chain.7032872a.js +0 -7065
package/dist/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ interface MatcherState {
|
|
|
171
171
|
equals: (a: unknown, b: unknown, customTesters?: Array<Tester>, strictCheck?: boolean) => boolean;
|
|
172
172
|
expand?: boolean;
|
|
173
173
|
expectedAssertionsNumber?: number | null;
|
|
174
|
-
|
|
174
|
+
expectedAssertionsNumberErrorGen?: (() => Error) | null;
|
|
175
175
|
isExpectingAssertions?: boolean;
|
|
176
176
|
isExpectingAssertionsError?: Error | null;
|
|
177
177
|
isNot: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { q as afterAll, w as afterEach, p as beforeAll, u as beforeEach, l as describe, x as expect, z as getRunningMode, o as isFirstRun, A as isWatchMode, m as it, n as runOnce, k as suite, t as test, v as vi, y as vitest } from './chunk-runtime-chain.
|
|
1
|
+
export { q as afterAll, w as afterEach, p as beforeAll, u as beforeEach, l as describe, x as expect, z as getRunningMode, o as isFirstRun, A as isWatchMode, m as it, n as runOnce, k as suite, t as test, v as vi, y as vitest } from './chunk-runtime-chain.45b5ea3a.js';
|
|
2
2
|
export { fn, isMockFunction, spies, spyOn } from './jest-mock.js';
|
|
3
3
|
export { assert, default as chai, should } from 'chai';
|
|
4
4
|
import 'util';
|
|
@@ -7,9 +7,9 @@ import 'path';
|
|
|
7
7
|
import 'tty';
|
|
8
8
|
import 'local-pkg';
|
|
9
9
|
import './chunk-utils-global.7bcfa03c.js';
|
|
10
|
+
import './chunk-utils-timers.997e0602.js';
|
|
10
11
|
import './vendor-_commonjsHelpers.34b404ce.js';
|
|
11
12
|
import './chunk-runtime-rpc.5f9e77bc.js';
|
|
12
13
|
import 'fs';
|
|
13
|
-
import './chunk-utils-source-map.fb8852df.js';
|
|
14
14
|
import 'tinyspy';
|
|
15
15
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OyJ9
|
package/dist/node.d.ts
CHANGED
|
@@ -17,7 +17,9 @@ declare class ViteNodeRunner {
|
|
|
17
17
|
constructor(options: ViteNodeRunnerOptions);
|
|
18
18
|
executeFile(file: string): Promise<any>;
|
|
19
19
|
executeId(id: string): Promise<any>;
|
|
20
|
+
/** @internal */
|
|
20
21
|
cachedRequest(rawId: string, callstack: string[]): Promise<any>;
|
|
22
|
+
/** @internal */
|
|
21
23
|
directRequest(id: string, fsPath: string, callstack: string[]): Promise<any>;
|
|
22
24
|
prepareContext(context: Record<string, any>): Record<string, any>;
|
|
23
25
|
shouldResolveId(dep: string): boolean;
|
package/dist/node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.
|
|
2
|
-
export { V as VitestRunner } from './chunk-utils-path.
|
|
1
|
+
export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.458f885a.js';
|
|
2
|
+
export { V as VitestRunner } from './chunk-utils-path.bd53cafb.js';
|
|
3
3
|
import 'buffer';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'child_process';
|
|
@@ -18,12 +18,12 @@ import 'tty';
|
|
|
18
18
|
import 'local-pkg';
|
|
19
19
|
import 'vite';
|
|
20
20
|
import './chunk-constants.a717efa1.js';
|
|
21
|
-
import './chunk-vite-node-utils.
|
|
21
|
+
import './chunk-vite-node-utils.71f7ea0f.js';
|
|
22
22
|
import 'module';
|
|
23
23
|
import 'vm';
|
|
24
24
|
import './chunk-defaults.720fd914.js';
|
|
25
25
|
import 'perf_hooks';
|
|
26
|
-
import './chunk-utils-
|
|
26
|
+
import './chunk-utils-timers.997e0602.js';
|
|
27
27
|
import 'worker_threads';
|
|
28
28
|
import 'tinypool';
|
|
29
29
|
import './chunk-magic-string.d5e0e473.js';
|
package/dist/worker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as resolve } from './chunk-utils-base.8397dafe.js';
|
|
2
|
-
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.
|
|
2
|
+
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.71f7ea0f.js';
|
|
3
3
|
import { d as distDir } from './chunk-constants.a717efa1.js';
|
|
4
|
-
import { e as executeInViteNode } from './chunk-utils-path.
|
|
4
|
+
import { e as executeInViteNode } from './chunk-utils-path.bd53cafb.js';
|
|
5
5
|
import { r as rpc } from './chunk-runtime-rpc.5f9e77bc.js';
|
|
6
6
|
import { g as getWorkerState } from './chunk-utils-global.7bcfa03c.js';
|
|
7
7
|
import 'path';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@types/node": "^17.0.21",
|
|
97
97
|
"@types/prompts": "^2.4.0",
|
|
98
98
|
"@types/sinonjs__fake-timers": "^8.1.1",
|
|
99
|
-
"@vitest/ui": "0.7.
|
|
99
|
+
"@vitest/ui": "0.7.11",
|
|
100
100
|
"birpc": "^0.1.0",
|
|
101
101
|
"c8": "^7.11.0",
|
|
102
102
|
"cac": "^6.7.12",
|
|
@@ -123,11 +123,11 @@
|
|
|
123
123
|
"source-map-js": "^1.0.2",
|
|
124
124
|
"strip-ansi": "^7.0.1",
|
|
125
125
|
"typescript": "^4.6.2",
|
|
126
|
-
"vite-node": "0.7.
|
|
126
|
+
"vite-node": "0.7.11",
|
|
127
127
|
"ws": "^8.5.0"
|
|
128
128
|
},
|
|
129
129
|
"engines": {
|
|
130
|
-
"node": ">=v14.
|
|
130
|
+
"node": ">=v14.16.0"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
133
|
"build": "rimraf dist && rollup -c",
|