vitest 0.7.7 → 0.7.10
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.293836c1.js} +2 -2
- package/dist/chunk-defaults.720fd914.js +1 -1
- package/dist/{chunk-utils-path.e19c1fff.js → chunk-utils-path.bd53cafb.js} +2 -2
- package/dist/{chunk-vite-node-externalize.82d4b8d8.js → chunk-vite-node-externalize.9827cb2b.js} +10 -7
- package/dist/{chunk-vite-node-utils.66647e5d.js → chunk-vite-node-utils.71f7ea0f.js} +13 -9
- package/dist/cli.js +4 -4
- package/dist/config.d.ts +3 -905
- package/dist/index.d.ts +1 -1
- package/dist/node.d.ts +3 -1
- package/dist/node.js +3 -3
- package/dist/worker.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -942,7 +942,7 @@ interface InlineConfig {
|
|
|
942
942
|
*/
|
|
943
943
|
outputTruncateLength?: number;
|
|
944
944
|
/**
|
|
945
|
-
* Write test results to a file when the --reporter=json option is also specified
|
|
945
|
+
* Write test results to a file when the --reporter=json` or `--reporter=junit` option is also specified.
|
|
946
946
|
*/
|
|
947
947
|
outputFile?: string;
|
|
948
948
|
/**
|
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;
|
|
@@ -692,7 +694,7 @@ interface InlineConfig {
|
|
|
692
694
|
*/
|
|
693
695
|
outputTruncateLength?: number;
|
|
694
696
|
/**
|
|
695
|
-
* Write test results to a file when the --reporter=json option is also specified
|
|
697
|
+
* Write test results to a file when the --reporter=json` or `--reporter=junit` option is also specified.
|
|
696
698
|
*/
|
|
697
699
|
outputFile?: string;
|
|
698
700
|
/**
|
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.9827cb2b.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,7 +18,7 @@ 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';
|
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.10",
|
|
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.10",
|
|
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.10",
|
|
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",
|