vitest 0.7.13 → 0.8.2
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.9251fc76.js → chunk-api-setup.f537ec22.js} +2 -2
- package/dist/{chunk-utils-path.a7442c7e.js → chunk-utils-path.02d3f287.js} +2 -2
- package/dist/{chunk-vite-node-externalize.9c698857.js → chunk-vite-node-externalize.a2ee7060.js} +90 -36
- package/dist/{chunk-vite-node-utils.194887b8.js → chunk-vite-node-utils.386c09c4.js} +31 -13
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +0 -4
- package/dist/node.d.ts +4 -5
- package/dist/node.js +3 -3
- package/dist/worker.js +2 -2
- package/package.json +6 -9
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
2
|
import { d as c } from './chunk-utils-base.8408f73a.js';
|
|
3
|
-
import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.
|
|
3
|
+
import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.a2ee7060.js';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'tty';
|
|
6
6
|
import 'local-pkg';
|
|
@@ -17,7 +17,7 @@ import 'url';
|
|
|
17
17
|
import 'os';
|
|
18
18
|
import 'vite';
|
|
19
19
|
import './chunk-constants.6062c404.js';
|
|
20
|
-
import './chunk-vite-node-utils.
|
|
20
|
+
import './chunk-vite-node-utils.386c09c4.js';
|
|
21
21
|
import 'module';
|
|
22
22
|
import 'vm';
|
|
23
23
|
import './chunk-defaults.e5535971.js';
|
package/dist/index.d.ts
CHANGED
package/dist/node.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare class ModuleCacheMap extends Map<string, ModuleCache> {
|
|
|
9
9
|
declare class ViteNodeRunner {
|
|
10
10
|
options: ViteNodeRunnerOptions;
|
|
11
11
|
root: string;
|
|
12
|
+
debug: boolean;
|
|
12
13
|
/**
|
|
13
14
|
* Holds the cache of modules
|
|
14
15
|
* Keys of the map are filepaths, or plain package names
|
|
@@ -20,7 +21,7 @@ declare class ViteNodeRunner {
|
|
|
20
21
|
/** @internal */
|
|
21
22
|
cachedRequest(rawId: string, callstack: string[]): Promise<any>;
|
|
22
23
|
/** @internal */
|
|
23
|
-
directRequest(id: string, fsPath: string,
|
|
24
|
+
directRequest(id: string, fsPath: string, _callstack: string[]): Promise<any>;
|
|
24
25
|
prepareContext(context: Record<string, any>): Record<string, any>;
|
|
25
26
|
shouldResolveId(dep: string): boolean;
|
|
26
27
|
/**
|
|
@@ -33,6 +34,7 @@ declare class ViteNodeRunner {
|
|
|
33
34
|
*/
|
|
34
35
|
interopedImport(path: string): Promise<any>;
|
|
35
36
|
hasNestedDefault(target: any): any;
|
|
37
|
+
private debugLog;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
interface DepsHandlingOptions {
|
|
@@ -75,6 +77,7 @@ interface ViteNodeRunnerOptions {
|
|
|
75
77
|
moduleCache?: ModuleCacheMap;
|
|
76
78
|
interopDefault?: boolean;
|
|
77
79
|
requestStubs?: Record<string, any>;
|
|
80
|
+
debug?: boolean;
|
|
78
81
|
}
|
|
79
82
|
interface ViteNodeResolveId {
|
|
80
83
|
external?: boolean | 'absolute' | 'relative';
|
|
@@ -651,10 +654,6 @@ interface InlineConfig {
|
|
|
651
654
|
* @default false
|
|
652
655
|
*/
|
|
653
656
|
globals?: boolean;
|
|
654
|
-
/**
|
|
655
|
-
* @deprecated
|
|
656
|
-
*/
|
|
657
|
-
global?: boolean;
|
|
658
657
|
/**
|
|
659
658
|
* Running environment
|
|
660
659
|
*
|
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.a2ee7060.js';
|
|
2
|
+
export { V as VitestRunner } from './chunk-utils-path.02d3f287.js';
|
|
3
3
|
import 'buffer';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'child_process';
|
|
@@ -18,7 +18,7 @@ import 'tty';
|
|
|
18
18
|
import 'local-pkg';
|
|
19
19
|
import 'vite';
|
|
20
20
|
import './chunk-constants.6062c404.js';
|
|
21
|
-
import './chunk-vite-node-utils.
|
|
21
|
+
import './chunk-vite-node-utils.386c09c4.js';
|
|
22
22
|
import 'module';
|
|
23
23
|
import 'vm';
|
|
24
24
|
import './chunk-defaults.e5535971.js';
|
package/dist/worker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as resolve } from './chunk-utils-base.8408f73a.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.386c09c4.js';
|
|
3
3
|
import { d as distDir } from './chunk-constants.6062c404.js';
|
|
4
|
-
import { e as executeInViteNode } from './chunk-utils-path.
|
|
4
|
+
import { e as executeInViteNode } from './chunk-utils-path.02d3f287.js';
|
|
5
5
|
import { r as rpc } from './chunk-runtime-rpc.e8aa1ebe.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.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
"types": "./dist/index.d.ts"
|
|
33
33
|
},
|
|
34
34
|
"./*": "./*",
|
|
35
|
-
"./global": {
|
|
36
|
-
"types": "./globals.d.ts"
|
|
37
|
-
},
|
|
38
35
|
"./globals": {
|
|
39
36
|
"types": "./globals.d.ts"
|
|
40
37
|
},
|
|
@@ -93,10 +90,10 @@
|
|
|
93
90
|
"@types/jsdom": "^16.2.14",
|
|
94
91
|
"@types/micromatch": "^4.0.2",
|
|
95
92
|
"@types/natural-compare": "^1.4.1",
|
|
96
|
-
"@types/node": "^17.0.
|
|
93
|
+
"@types/node": "^17.0.23",
|
|
97
94
|
"@types/prompts": "^2.4.0",
|
|
98
95
|
"@types/sinonjs__fake-timers": "^8.1.2",
|
|
99
|
-
"@vitest/ui": "0.
|
|
96
|
+
"@vitest/ui": "0.8.2",
|
|
100
97
|
"birpc": "^0.2.2",
|
|
101
98
|
"c8": "^7.11.0",
|
|
102
99
|
"cac": "^6.7.12",
|
|
@@ -107,7 +104,7 @@
|
|
|
107
104
|
"fast-glob": "^3.2.11",
|
|
108
105
|
"find-up": "^6.3.0",
|
|
109
106
|
"flatted": "^3.2.5",
|
|
110
|
-
"happy-dom": "^2.
|
|
107
|
+
"happy-dom": "^2.53.1",
|
|
111
108
|
"jsdom": "^19.0.0",
|
|
112
109
|
"log-update": "^5.0.0",
|
|
113
110
|
"magic-string": "^0.26.1",
|
|
@@ -123,11 +120,11 @@
|
|
|
123
120
|
"source-map-js": "^1.0.2",
|
|
124
121
|
"strip-ansi": "^7.0.1",
|
|
125
122
|
"typescript": "^4.6.3",
|
|
126
|
-
"vite-node": "0.
|
|
123
|
+
"vite-node": "0.8.2",
|
|
127
124
|
"ws": "^8.5.0"
|
|
128
125
|
},
|
|
129
126
|
"engines": {
|
|
130
|
-
"node": ">=v14.
|
|
127
|
+
"node": ">=v14.16.0"
|
|
131
128
|
},
|
|
132
129
|
"scripts": {
|
|
133
130
|
"build": "rimraf dist && rollup -c",
|