vitest 0.7.3 → 0.7.6
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.78dc40d0.js → chunk-api-setup.e20120cf.js} +3 -3
- package/dist/{chunk-integrations-globals.07fd0dd8.js → chunk-integrations-globals.cd2261c2.js} +3 -3
- package/dist/{chunk-runtime-chain.26475065.js → chunk-runtime-chain.ff1c4d60.js} +2 -2
- package/dist/{chunk-utils-path.c049f6c1.js → chunk-utils-path.577ffb7b.js} +2 -2
- package/dist/{chunk-utils-source-map.268054ec.js → chunk-utils-source-map.fb8852df.js} +8 -8
- package/dist/{chunk-vite-node-externalize.a87d4f87.js → chunk-vite-node-externalize.fe4b860d.js} +11 -11
- package/dist/{chunk-vite-node-utils.f7a2c0bb.js → chunk-vite-node-utils.45af7aa1.js} +9 -1
- package/dist/cli.js +5 -5
- package/dist/config.d.ts +4 -0
- package/dist/entry.js +3 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/dist/node.d.ts +4 -0
- package/dist/node.js +4 -4
- package/dist/worker.js +2 -2
- package/package.json +3 -3
package/dist/config.d.ts
CHANGED
|
@@ -719,6 +719,10 @@ interface InlineConfig {
|
|
|
719
719
|
* Custom reporter for output
|
|
720
720
|
*/
|
|
721
721
|
reporters?: Arrayable<BuiltinReporters | Reporter>;
|
|
722
|
+
/**
|
|
723
|
+
* diff output length
|
|
724
|
+
*/
|
|
725
|
+
outputTruncateLength?: number;
|
|
722
726
|
/**
|
|
723
727
|
* Write test results to a file when the --reporter=json option is also specified
|
|
724
728
|
*/
|
package/dist/entry.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t as toArray, r as relative, B as partitionSuiteChildren, C as hasTests
|
|
|
3
3
|
import { Console } from 'console';
|
|
4
4
|
import { Writable } from 'stream';
|
|
5
5
|
import { importModule } from 'local-pkg';
|
|
6
|
-
import { r as resetRunOnceCounter, i as index, R as RealDate, s as stringify, c as clearContext, d as defaultSuite, a as setHooks, g as getHooks, b as context, e as getSnapshotClient, f as setState, h as getFn, j as getState, v as vi } from './chunk-runtime-chain.
|
|
6
|
+
import { r as resetRunOnceCounter, i as index, R as RealDate, s as stringify, c as clearContext, d as defaultSuite, a as setHooks, g as getHooks, b as context, e as getSnapshotClient, f as setState, h as getFn, j as getState, v as vi } from './chunk-runtime-chain.ff1c4d60.js';
|
|
7
7
|
import { r as rpc } from './chunk-runtime-rpc.5f9e77bc.js';
|
|
8
8
|
import { g as getWorkerState } from './chunk-utils-global.7bcfa03c.js';
|
|
9
9
|
import { performance as performance$1 } from 'perf_hooks';
|
|
@@ -14,7 +14,7 @@ import 'path';
|
|
|
14
14
|
import 'tty';
|
|
15
15
|
import 'chai';
|
|
16
16
|
import './vendor-_commonjsHelpers.34b404ce.js';
|
|
17
|
-
import './chunk-utils-source-map.
|
|
17
|
+
import './chunk-utils-source-map.fb8852df.js';
|
|
18
18
|
import './jest-mock.js';
|
|
19
19
|
import 'tinyspy';
|
|
20
20
|
import 'module';
|
|
@@ -403,7 +403,7 @@ async function setupGlobalEnv(config) {
|
|
|
403
403
|
globalSetup = true;
|
|
404
404
|
setupConsoleLogSpy();
|
|
405
405
|
if (config.globals)
|
|
406
|
-
(await import('./chunk-integrations-globals.
|
|
406
|
+
(await import('./chunk-integrations-globals.cd2261c2.js')).registerApiGlobally();
|
|
407
407
|
}
|
|
408
408
|
function setupDefines(defines) {
|
|
409
409
|
for (const key in defines)
|
package/dist/index.d.ts
CHANGED
|
@@ -936,6 +936,10 @@ interface InlineConfig {
|
|
|
936
936
|
* Custom reporter for output
|
|
937
937
|
*/
|
|
938
938
|
reporters?: Arrayable<BuiltinReporters | Reporter>;
|
|
939
|
+
/**
|
|
940
|
+
* diff output length
|
|
941
|
+
*/
|
|
942
|
+
outputTruncateLength?: number;
|
|
939
943
|
/**
|
|
940
944
|
* Write test results to a file when the --reporter=json option is also specified
|
|
941
945
|
*/
|
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.ff1c4d60.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';
|
|
@@ -10,6 +10,6 @@ import './chunk-utils-global.7bcfa03c.js';
|
|
|
10
10
|
import './vendor-_commonjsHelpers.34b404ce.js';
|
|
11
11
|
import './chunk-runtime-rpc.5f9e77bc.js';
|
|
12
12
|
import 'fs';
|
|
13
|
-
import './chunk-utils-source-map.
|
|
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
|
@@ -686,6 +686,10 @@ interface InlineConfig {
|
|
|
686
686
|
* Custom reporter for output
|
|
687
687
|
*/
|
|
688
688
|
reporters?: Arrayable<BuiltinReporters | Reporter>;
|
|
689
|
+
/**
|
|
690
|
+
* diff output length
|
|
691
|
+
*/
|
|
692
|
+
outputTruncateLength?: number;
|
|
689
693
|
/**
|
|
690
694
|
* Write test results to a file when the --reporter=json option is also specified
|
|
691
695
|
*/
|
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.fe4b860d.js';
|
|
2
|
+
export { V as VitestRunner } from './chunk-utils-path.577ffb7b.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.45af7aa1.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-source-map.
|
|
26
|
+
import './chunk-utils-source-map.fb8852df.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.45af7aa1.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.577ffb7b.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.6",
|
|
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.6",
|
|
100
100
|
"birpc": "^0.1.0",
|
|
101
101
|
"c8": "^7.11.0",
|
|
102
102
|
"cac": "^6.7.12",
|
|
@@ -123,7 +123,7 @@
|
|
|
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.6",
|
|
127
127
|
"ws": "^8.5.0"
|
|
128
128
|
},
|
|
129
129
|
"engines": {
|