vitest 0.21.0 → 0.21.1
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 +29 -0
- package/dist/browser.d.ts +3 -3
- package/dist/browser.mjs +7 -7
- package/dist/{chunk-api-setup.89eb0e7a.mjs → chunk-api-setup.7a6ba7fb.mjs} +5 -5
- package/dist/{chunk-constants.9da1ef26.mjs → chunk-constants.26dc9f85.mjs} +1 -1
- package/dist/{chunk-defaults.8390340d.mjs → chunk-defaults.02abff90.mjs} +1 -1
- package/dist/{chunk-integrations-globals.a798d352.mjs → chunk-integrations-globals.44a8f047.mjs} +6 -6
- package/dist/{chunk-mock-date.ea3b3121.mjs → chunk-mock-date.bc81a3ac.mjs} +1 -1
- package/dist/{chunk-node-git.e0dc0a7e.mjs → chunk-node-git.c2be9c49.mjs} +1 -1
- package/dist/{chunk-runtime-chain.44b4224d.mjs → chunk-runtime-chain.98d42d89.mjs} +3 -3
- package/dist/{chunk-runtime-error.95e53764.mjs → chunk-runtime-error.87a2b5a2.mjs} +11 -11
- package/dist/{chunk-runtime-hooks.291644ec.mjs → chunk-runtime-hooks.453f8858.mjs} +3 -3
- package/dist/{chunk-runtime-mocker.6190d6a3.mjs → chunk-runtime-mocker.23b62bfa.mjs} +19 -5
- package/dist/{chunk-runtime-rpc.fc50dcc0.mjs → chunk-runtime-rpc.b50ab560.mjs} +1 -1
- package/dist/{chunk-utils-source-map.d307e4ea.mjs → chunk-utils-source-map.94107ee8.mjs} +1 -1
- package/dist/{chunk-vite-node-client.b59ba135.mjs → chunk-vite-node-client.fdd9592c.mjs} +7 -3
- package/dist/{chunk-vite-node-debug.dbce2e1f.mjs → chunk-vite-node-debug.09afb76f.mjs} +1 -1
- package/dist/{chunk-vite-node-externalize.80bed9b3.mjs → chunk-vite-node-externalize.27aee038.mjs} +14 -14
- package/dist/chunk-vite-node-utils.f34df9d3.mjs +6887 -0
- package/dist/cli.mjs +8 -8
- package/dist/config.d.ts +1 -1
- package/dist/entry.mjs +7 -7
- package/dist/{global-644546f7.d.ts → global-60f880c6.d.ts} +9 -7
- package/dist/{index-3f764034.d.ts → index-4a906fa4.d.ts} +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +5 -5
- package/dist/loader.mjs +3 -3
- package/dist/node.d.ts +2 -2
- package/dist/node.mjs +9 -9
- package/dist/suite.mjs +4 -4
- package/dist/{vendor-index.de788b6a.mjs → vendor-index.ae96af6e.mjs} +14 -14
- package/dist/worker.mjs +6 -6
- package/package.json +6 -6
- package/dist/chunk-vite-node-utils.96438e82.mjs +0 -1114
package/dist/cli.mjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { p as picocolors } from './chunk-mock-date.
|
|
3
|
-
import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.
|
|
2
|
+
import { p as picocolors } from './chunk-mock-date.bc81a3ac.mjs';
|
|
3
|
+
import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.27aee038.mjs';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'tty';
|
|
6
6
|
import 'local-pkg';
|
|
7
|
-
import './chunk-defaults.
|
|
7
|
+
import './chunk-defaults.02abff90.mjs';
|
|
8
8
|
import 'fs';
|
|
9
9
|
import 'module';
|
|
10
10
|
import 'url';
|
|
11
11
|
import 'vite';
|
|
12
12
|
import 'process';
|
|
13
|
-
import './chunk-constants.
|
|
13
|
+
import './chunk-constants.26dc9f85.mjs';
|
|
14
14
|
import 'os';
|
|
15
15
|
import 'util';
|
|
16
16
|
import 'stream';
|
|
17
17
|
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
18
|
-
import './chunk-vite-node-client.
|
|
18
|
+
import './chunk-vite-node-client.fdd9592c.mjs';
|
|
19
19
|
import 'vm';
|
|
20
|
-
import './chunk-vite-node-utils.
|
|
20
|
+
import './chunk-vite-node-utils.f34df9d3.mjs';
|
|
21
21
|
import 'assert';
|
|
22
22
|
import 'debug';
|
|
23
23
|
import 'worker_threads';
|
|
24
24
|
import 'tinypool';
|
|
25
25
|
import 'perf_hooks';
|
|
26
|
-
import './chunk-utils-source-map.
|
|
26
|
+
import './chunk-utils-source-map.94107ee8.mjs';
|
|
27
27
|
import './chunk-utils-timers.b48455ed.mjs';
|
|
28
28
|
import 'crypto';
|
|
29
29
|
import './vendor-index.61438b77.mjs';
|
|
30
30
|
import './chunk-magic-string.efe26975.mjs';
|
|
31
31
|
import 'readline';
|
|
32
|
-
import './vendor-index.
|
|
32
|
+
import './vendor-index.ae96af6e.mjs';
|
|
33
33
|
|
|
34
34
|
function toArr(any) {
|
|
35
35
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
package/dist/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserConfig as UserConfig$2, ConfigEnv } from 'vite';
|
|
2
2
|
export { ConfigEnv } from 'vite';
|
|
3
|
-
import { U as UserConfig$1, a1 as ResolvedC8Options, F as FakeTimerInstallOpts } from './global-
|
|
3
|
+
import { U as UserConfig$1, a1 as ResolvedC8Options, F as FakeTimerInstallOpts } from './global-60f880c6.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
|
|
6
6
|
declare const config: {
|
package/dist/entry.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { promises } from 'fs';
|
|
2
|
-
import { a as resetModules } from './chunk-mock-date.
|
|
3
|
-
import { f as envs } from './chunk-defaults.
|
|
4
|
-
import { a as setupGlobalEnv, s as startTests, w as withEnv } from './chunk-runtime-error.
|
|
2
|
+
import { a as resetModules } from './chunk-mock-date.bc81a3ac.mjs';
|
|
3
|
+
import { f as envs } from './chunk-defaults.02abff90.mjs';
|
|
4
|
+
import { a as setupGlobalEnv, s as startTests, w as withEnv } from './chunk-runtime-error.87a2b5a2.mjs';
|
|
5
5
|
import { g as getWorkerState } from './chunk-utils-global.fa20c2f6.mjs';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'tty';
|
|
8
8
|
import 'local-pkg';
|
|
9
9
|
import 'module';
|
|
10
10
|
import 'url';
|
|
11
|
-
import './chunk-runtime-hooks.
|
|
12
|
-
import './chunk-runtime-chain.
|
|
11
|
+
import './chunk-runtime-hooks.453f8858.mjs';
|
|
12
|
+
import './chunk-runtime-chain.98d42d89.mjs';
|
|
13
13
|
import 'util';
|
|
14
14
|
import 'chai';
|
|
15
15
|
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
16
|
-
import './chunk-runtime-rpc.
|
|
16
|
+
import './chunk-runtime-rpc.b50ab560.mjs';
|
|
17
17
|
import './chunk-utils-timers.b48455ed.mjs';
|
|
18
|
-
import './chunk-utils-source-map.
|
|
18
|
+
import './chunk-utils-source-map.94107ee8.mjs';
|
|
19
19
|
import './spy.mjs';
|
|
20
20
|
import 'tinyspy';
|
|
21
21
|
|
|
@@ -977,6 +977,7 @@ declare type ChainableTestAPI<ExtraContext = {}> = ChainableFunction<'concurrent
|
|
|
977
977
|
timeout?: number
|
|
978
978
|
], void, {
|
|
979
979
|
each: TestEachFunction;
|
|
980
|
+
<T extends ExtraContext>(name: string, fn?: TestFunction<T>, timeout?: number): void;
|
|
980
981
|
}>;
|
|
981
982
|
declare type TestAPI<ExtraContext = {}> = ChainableTestAPI<ExtraContext> & {
|
|
982
983
|
each: TestEachFunction;
|
|
@@ -985,22 +986,23 @@ declare type TestAPI<ExtraContext = {}> = ChainableTestAPI<ExtraContext> & {
|
|
|
985
986
|
};
|
|
986
987
|
declare type ChainableSuiteAPI<ExtraContext = {}> = ChainableFunction<'concurrent' | 'only' | 'skip' | 'todo' | 'shuffle', [
|
|
987
988
|
name: string,
|
|
988
|
-
factory?: SuiteFactory
|
|
989
|
+
factory?: SuiteFactory<ExtraContext>
|
|
989
990
|
], SuiteCollector<ExtraContext>, {
|
|
990
991
|
each: TestEachFunction;
|
|
992
|
+
<T extends ExtraContext>(name: string, factory?: SuiteFactory<T>): SuiteCollector<T>;
|
|
991
993
|
}>;
|
|
992
|
-
declare type SuiteAPI<ExtraContext = {}> = ChainableSuiteAPI & {
|
|
994
|
+
declare type SuiteAPI<ExtraContext = {}> = ChainableSuiteAPI<ExtraContext> & {
|
|
993
995
|
each: SuiteEachFunction;
|
|
994
996
|
skipIf(condition: any): ChainableSuiteAPI<ExtraContext>;
|
|
995
997
|
runIf(condition: any): ChainableSuiteAPI<ExtraContext>;
|
|
996
998
|
};
|
|
997
999
|
declare type HookListener<T extends any[], Return = void> = (...args: T) => Awaitable<Return>;
|
|
998
1000
|
declare type HookCleanupCallback = (() => Awaitable<unknown>) | void;
|
|
999
|
-
interface SuiteHooks {
|
|
1001
|
+
interface SuiteHooks<ExtraContext = {}> {
|
|
1000
1002
|
beforeAll: HookListener<[Suite | File], HookCleanupCallback>[];
|
|
1001
1003
|
afterAll: HookListener<[Suite | File]>[];
|
|
1002
|
-
beforeEach: HookListener<[TestContext, Suite], HookCleanupCallback>[];
|
|
1003
|
-
afterEach: HookListener<[TestContext, Suite]>[];
|
|
1004
|
+
beforeEach: HookListener<[TestContext & ExtraContext, Suite], HookCleanupCallback>[];
|
|
1005
|
+
afterEach: HookListener<[TestContext & ExtraContext, Suite]>[];
|
|
1004
1006
|
}
|
|
1005
1007
|
interface SuiteCollector<ExtraContext = {}> {
|
|
1006
1008
|
readonly name: string;
|
|
@@ -1010,9 +1012,9 @@ interface SuiteCollector<ExtraContext = {}> {
|
|
|
1010
1012
|
tasks: (Suite | Test | SuiteCollector<ExtraContext>)[];
|
|
1011
1013
|
collect: (file?: File) => Promise<Suite>;
|
|
1012
1014
|
clear: () => void;
|
|
1013
|
-
on: <T extends keyof SuiteHooks
|
|
1015
|
+
on: <T extends keyof SuiteHooks<ExtraContext>>(name: T, ...fn: SuiteHooks<ExtraContext>[T]) => void;
|
|
1014
1016
|
}
|
|
1015
|
-
declare type SuiteFactory = (test: (name: string, fn: TestFunction) => void) => Awaitable<void>;
|
|
1017
|
+
declare type SuiteFactory<ExtraContext = {}> = (test: (name: string, fn: TestFunction<ExtraContext>) => void) => Awaitable<void>;
|
|
1016
1018
|
interface RuntimeContext {
|
|
1017
1019
|
tasks: (SuiteCollector | Test)[];
|
|
1018
1020
|
currentSuite: SuiteCollector | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessagePort } from 'worker_threads';
|
|
2
|
-
import { R as ResolvedConfig, a2 as ViteNodeResolveId, a3 as FetchFunction, a4 as RawSourceMap, a as File, X as UserConsoleLog, T as TaskResultPack, v as SnapshotResult, g as Test, a5 as ModuleCacheMap, k as SuiteAPI, j as TestAPI, m as SuiteHooks } from './global-
|
|
2
|
+
import { R as ResolvedConfig, a2 as ViteNodeResolveId, a3 as FetchFunction, a4 as RawSourceMap, a as File, X as UserConsoleLog, T as TaskResultPack, v as SnapshotResult, g as Test, a5 as ModuleCacheMap, k as SuiteAPI, j as TestAPI, m as SuiteHooks, H as HookListener, q as TestContext, S as Suite, l as HookCleanupCallback } from './global-60f880c6.js';
|
|
3
3
|
import { M as MockMap } from './mocker-5e2a8e41.js';
|
|
4
4
|
import { SpyImpl } from 'tinyspy';
|
|
5
5
|
|
|
@@ -155,8 +155,8 @@ declare const it: TestAPI<{}>;
|
|
|
155
155
|
|
|
156
156
|
declare const beforeAll: (fn: SuiteHooks['beforeAll'][0], timeout?: number) => void;
|
|
157
157
|
declare const afterAll: (fn: SuiteHooks['afterAll'][0], timeout?: number) => void;
|
|
158
|
-
declare const beforeEach: (fn:
|
|
159
|
-
declare const afterEach: (fn:
|
|
158
|
+
declare const beforeEach: <ExtraContext = {}>(fn: HookListener<[TestContext & ExtraContext, Suite], HookCleanupCallback>, timeout?: number) => void;
|
|
159
|
+
declare const afterEach: <ExtraContext = {}>(fn: HookListener<[TestContext & ExtraContext, Suite], void>, timeout?: number) => void;
|
|
160
160
|
|
|
161
161
|
declare function createExpect(test?: Test): Vi.ExpectStatic;
|
|
162
162
|
declare const globalExpect: Vi.ExpectStatic;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as spyOn, f as fn, M as MaybeMockedDeep, a as MaybeMocked, b as MaybePartiallyMocked, c as MaybePartiallyMockedDeep, E as EnhancedSpy } from './index-
|
|
2
|
-
export { E as EnhancedSpy, q as Mock, r as MockContext, p as MockInstance, u as Mocked, v as MockedClass, n as MockedFunction, o as MockedObject, R as ResolveIdFunction, S as SpyInstance, W as WorkerContext, x as WorkerGlobalState, w as WorkerRPC, h as afterAll, k as afterEach, g as beforeAll, j as beforeEach, m as createExpect, e as describe, l as expect, i as it, d as suite, t as test } from './index-
|
|
3
|
-
import { D as DoneCallback, F as FakeTimerInstallOpts, a as File, T as TaskResultPack, R as ResolvedConfig, M as ModuleGraphData, b as Reporter } from './global-
|
|
4
|
-
export { A as ApiConfig, C as ArgumentsType, z as Arrayable, y as Awaitable, B as BuiltinEnvironment, a0 as C8Options, O as Constructable, $ as CoverageReporter, K as DeepMerge, D as DoneCallback, W as Environment, E as EnvironmentOptions, Q as EnvironmentReturn, _ as ErrorWithDiff, a as File, l as HookCleanupCallback, H as HookListener, I as InlineConfig, J as JSDOMOptions, G as MergeInsertions, P as ModuleCache, M as ModuleGraphData, L as MutableArray, N as Nullable, Z as ParsedStack, Y as Position, b as Reporter, a1 as ResolvedC8Options, R as ResolvedConfig, c as RunMode, p as RuntimeContext, r as SnapshotData, u as SnapshotMatchOptions, v as SnapshotResult, t as SnapshotStateOptions, x as SnapshotSummary, s as SnapshotUpdateState, S as Suite, k as SuiteAPI, n as SuiteCollector, o as SuiteFactory, m as SuiteHooks, h as Task, e as TaskBase, f as TaskResult, T as TaskResultPack, d as TaskState, g as Test, j as TestAPI, q as TestContext, i as TestFunction, w as UncheckedSnapshot, U as UserConfig, X as UserConsoleLog, V as Vitest } from './global-
|
|
1
|
+
import { s as spyOn, f as fn, M as MaybeMockedDeep, a as MaybeMocked, b as MaybePartiallyMocked, c as MaybePartiallyMockedDeep, E as EnhancedSpy } from './index-4a906fa4.js';
|
|
2
|
+
export { E as EnhancedSpy, q as Mock, r as MockContext, p as MockInstance, u as Mocked, v as MockedClass, n as MockedFunction, o as MockedObject, R as ResolveIdFunction, S as SpyInstance, W as WorkerContext, x as WorkerGlobalState, w as WorkerRPC, h as afterAll, k as afterEach, g as beforeAll, j as beforeEach, m as createExpect, e as describe, l as expect, i as it, d as suite, t as test } from './index-4a906fa4.js';
|
|
3
|
+
import { D as DoneCallback, F as FakeTimerInstallOpts, a as File, T as TaskResultPack, R as ResolvedConfig, M as ModuleGraphData, b as Reporter } from './global-60f880c6.js';
|
|
4
|
+
export { A as ApiConfig, C as ArgumentsType, z as Arrayable, y as Awaitable, B as BuiltinEnvironment, a0 as C8Options, O as Constructable, $ as CoverageReporter, K as DeepMerge, D as DoneCallback, W as Environment, E as EnvironmentOptions, Q as EnvironmentReturn, _ as ErrorWithDiff, a as File, l as HookCleanupCallback, H as HookListener, I as InlineConfig, J as JSDOMOptions, G as MergeInsertions, P as ModuleCache, M as ModuleGraphData, L as MutableArray, N as Nullable, Z as ParsedStack, Y as Position, b as Reporter, a1 as ResolvedC8Options, R as ResolvedConfig, c as RunMode, p as RuntimeContext, r as SnapshotData, u as SnapshotMatchOptions, v as SnapshotResult, t as SnapshotStateOptions, x as SnapshotSummary, s as SnapshotUpdateState, S as Suite, k as SuiteAPI, n as SuiteCollector, o as SuiteFactory, m as SuiteHooks, h as Task, e as TaskBase, f as TaskResult, T as TaskResultPack, d as TaskState, g as Test, j as TestAPI, q as TestContext, i as TestFunction, w as UncheckedSnapshot, U as UserConfig, X as UserConsoleLog, V as Vitest } from './global-60f880c6.js';
|
|
5
5
|
import { TransformResult } from 'vite';
|
|
6
6
|
import * as chai from 'chai';
|
|
7
7
|
export { chai };
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { c as createExpect, d as describe, b as expect, i as it, s as suite, t as test } from './chunk-runtime-chain.
|
|
2
|
-
export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, h as getRunningMode, f as isFirstRun, j as isWatchMode, e as runOnce, v as vi, g as vitest, w as withCallback } from './chunk-runtime-hooks.
|
|
1
|
+
export { c as createExpect, d as describe, b as expect, i as it, s as suite, t as test } from './chunk-runtime-chain.98d42d89.mjs';
|
|
2
|
+
export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, h as getRunningMode, f as isFirstRun, j as isWatchMode, e as runOnce, v as vi, g as vitest, w as withCallback } from './chunk-runtime-hooks.453f8858.mjs';
|
|
3
3
|
import * as chai from 'chai';
|
|
4
4
|
export { chai };
|
|
5
5
|
export { assert, should } from 'chai';
|
|
6
6
|
import 'util';
|
|
7
|
-
import './chunk-mock-date.
|
|
7
|
+
import './chunk-mock-date.bc81a3ac.mjs';
|
|
8
8
|
import 'path';
|
|
9
9
|
import 'tty';
|
|
10
10
|
import 'local-pkg';
|
|
11
11
|
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
12
|
-
import './chunk-runtime-rpc.
|
|
12
|
+
import './chunk-runtime-rpc.b50ab560.mjs';
|
|
13
13
|
import './chunk-utils-global.fa20c2f6.mjs';
|
|
14
14
|
import './chunk-utils-timers.b48455ed.mjs';
|
|
15
15
|
import 'fs';
|
|
16
|
-
import './chunk-utils-source-map.
|
|
16
|
+
import './chunk-utils-source-map.94107ee8.mjs';
|
|
17
17
|
import './spy.mjs';
|
|
18
18
|
import 'tinyspy';
|
package/dist/loader.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { pathToFileURL } from 'url';
|
|
2
2
|
import { readFile } from 'fs/promises';
|
|
3
|
-
import { i as isNodeBuiltin, d as normalizeModuleId, h as hasCJSSyntax } from './chunk-vite-node-utils.
|
|
4
|
-
import './chunk-mock-date.
|
|
3
|
+
import { i as isNodeBuiltin, d as normalizeModuleId, h as hasCJSSyntax } from './chunk-vite-node-utils.f34df9d3.mjs';
|
|
4
|
+
import './chunk-mock-date.bc81a3ac.mjs';
|
|
5
5
|
import { g as getWorkerState } from './chunk-utils-global.fa20c2f6.mjs';
|
|
6
6
|
import 'module';
|
|
7
|
-
import 'path';
|
|
8
7
|
import 'fs';
|
|
8
|
+
import 'path';
|
|
9
9
|
import 'assert';
|
|
10
10
|
import 'util';
|
|
11
11
|
import 'tty';
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as UserConfig, V as Vitest, a5 as ModuleCacheMap, a6 as ViteNodeRunnerOptions, a7 as ViteNodeRunner, a8 as TestSequencer } from './global-
|
|
2
|
-
export { a8 as TestSequencer, aa as TestSequencerConstructor, V as Vitest, a9 as startVitest } from './global-
|
|
1
|
+
import { U as UserConfig, V as Vitest, a5 as ModuleCacheMap, a6 as ViteNodeRunnerOptions, a7 as ViteNodeRunner, a8 as TestSequencer } from './global-60f880c6.js';
|
|
2
|
+
export { a8 as TestSequencer, aa as TestSequencerConstructor, V as Vitest, a9 as startVitest } from './global-60f880c6.js';
|
|
3
3
|
import { UserConfig as UserConfig$1, Plugin } from 'vite';
|
|
4
4
|
import { M as MockMap } from './mocker-5e2a8e41.js';
|
|
5
5
|
import 'fs';
|
package/dist/node.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.
|
|
2
|
-
export { V as VitestRunner } from './chunk-runtime-mocker.
|
|
3
|
-
import './chunk-mock-date.
|
|
1
|
+
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.27aee038.mjs';
|
|
2
|
+
export { V as VitestRunner } from './chunk-runtime-mocker.23b62bfa.mjs';
|
|
3
|
+
import './chunk-mock-date.bc81a3ac.mjs';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'tty';
|
|
6
6
|
import 'local-pkg';
|
|
7
|
-
import './chunk-defaults.
|
|
7
|
+
import './chunk-defaults.02abff90.mjs';
|
|
8
8
|
import 'fs';
|
|
9
9
|
import 'module';
|
|
10
10
|
import 'url';
|
|
11
11
|
import 'vite';
|
|
12
12
|
import 'process';
|
|
13
|
-
import './chunk-constants.
|
|
13
|
+
import './chunk-constants.26dc9f85.mjs';
|
|
14
14
|
import 'os';
|
|
15
15
|
import 'util';
|
|
16
16
|
import 'stream';
|
|
17
17
|
import 'events';
|
|
18
18
|
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
19
|
-
import './chunk-vite-node-client.
|
|
19
|
+
import './chunk-vite-node-client.fdd9592c.mjs';
|
|
20
20
|
import 'vm';
|
|
21
|
-
import './chunk-vite-node-utils.
|
|
21
|
+
import './chunk-vite-node-utils.f34df9d3.mjs';
|
|
22
22
|
import 'assert';
|
|
23
23
|
import 'debug';
|
|
24
24
|
import 'worker_threads';
|
|
25
25
|
import 'tinypool';
|
|
26
26
|
import 'perf_hooks';
|
|
27
|
-
import './chunk-utils-source-map.
|
|
27
|
+
import './chunk-utils-source-map.94107ee8.mjs';
|
|
28
28
|
import './chunk-utils-timers.b48455ed.mjs';
|
|
29
29
|
import 'crypto';
|
|
30
30
|
import './vendor-index.61438b77.mjs';
|
|
31
31
|
import './chunk-magic-string.efe26975.mjs';
|
|
32
32
|
import 'readline';
|
|
33
|
-
import './vendor-index.
|
|
33
|
+
import './vendor-index.ae96af6e.mjs';
|
|
34
34
|
import './chunk-utils-global.fa20c2f6.mjs';
|
package/dist/suite.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import 'util';
|
|
2
|
-
import './chunk-mock-date.
|
|
3
|
-
export { e as clearCollectorContext, o as createSuiteHooks, f as defaultSuite, d as describe, g as getCurrentSuite, i as it, s as suite, t as test } from './chunk-runtime-chain.
|
|
2
|
+
import './chunk-mock-date.bc81a3ac.mjs';
|
|
3
|
+
export { e as clearCollectorContext, o as createSuiteHooks, f as defaultSuite, d as describe, g as getCurrentSuite, i as it, s as suite, t as test } from './chunk-runtime-chain.98d42d89.mjs';
|
|
4
4
|
import './chunk-utils-global.fa20c2f6.mjs';
|
|
5
5
|
import 'path';
|
|
6
6
|
import 'tty';
|
|
7
7
|
import 'local-pkg';
|
|
8
8
|
import 'chai';
|
|
9
9
|
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
10
|
-
import './chunk-runtime-rpc.
|
|
10
|
+
import './chunk-runtime-rpc.b50ab560.mjs';
|
|
11
11
|
import './chunk-utils-timers.b48455ed.mjs';
|
|
12
12
|
import 'fs';
|
|
13
|
-
import './chunk-utils-source-map.
|
|
13
|
+
import './chunk-utils-source-map.94107ee8.mjs';
|
|
14
14
|
import './spy.mjs';
|
|
15
15
|
import 'tinyspy';
|
|
@@ -2798,12 +2798,12 @@ function requireAutocompleteMultiselect$1 () {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
|
|
2800
2800
|
return `
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2801
|
+
Instructions:
|
|
2802
|
+
${figures.arrowUp}/${figures.arrowDown}: Highlight option
|
|
2803
|
+
${figures.arrowLeft}/${figures.arrowRight}/[space]: Toggle selection
|
|
2804
|
+
[a,b,c]/delete: Filter choices
|
|
2805
|
+
enter/return: Complete answer
|
|
2806
|
+
`;
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
2809
|
return '';
|
|
@@ -2811,7 +2811,7 @@ function requireAutocompleteMultiselect$1 () {
|
|
|
2811
2811
|
|
|
2812
2812
|
renderCurrentInput() {
|
|
2813
2813
|
return `
|
|
2814
|
-
|
|
2814
|
+
Filtered results for: ${this.inputValue ? this.inputValue : color.gray('Enter something to filter')}\n`;
|
|
2815
2815
|
}
|
|
2816
2816
|
|
|
2817
2817
|
renderOption(cursor, v, i) {
|
|
@@ -5761,19 +5761,19 @@ function requireAutocompleteMultiselect () {
|
|
|
5761
5761
|
return this.instructions;
|
|
5762
5762
|
}
|
|
5763
5763
|
return `
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5764
|
+
Instructions:
|
|
5765
|
+
${figures.arrowUp}/${figures.arrowDown}: Highlight option
|
|
5766
|
+
${figures.arrowLeft}/${figures.arrowRight}/[space]: Toggle selection
|
|
5767
|
+
[a,b,c]/delete: Filter choices
|
|
5768
|
+
enter/return: Complete answer
|
|
5769
|
+
`;
|
|
5770
5770
|
}
|
|
5771
5771
|
return '';
|
|
5772
5772
|
}
|
|
5773
5773
|
|
|
5774
5774
|
renderCurrentInput() {
|
|
5775
5775
|
return `
|
|
5776
|
-
|
|
5776
|
+
Filtered results for: ${this.inputValue ? this.inputValue : color.gray('Enter something to filter')}\n`;
|
|
5777
5777
|
}
|
|
5778
5778
|
|
|
5779
5779
|
renderOption(cursor, v, i) {
|
package/dist/worker.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { y as resolve } from './chunk-mock-date.
|
|
2
|
-
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-client.
|
|
1
|
+
import { y as resolve } from './chunk-mock-date.bc81a3ac.mjs';
|
|
2
|
+
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-client.fdd9592c.mjs';
|
|
3
3
|
import { workerId } from 'tinypool';
|
|
4
|
-
import { d as distDir } from './chunk-constants.
|
|
5
|
-
import { e as executeInViteNode } from './chunk-runtime-mocker.
|
|
6
|
-
import { r as rpc } from './chunk-runtime-rpc.
|
|
4
|
+
import { d as distDir } from './chunk-constants.26dc9f85.mjs';
|
|
5
|
+
import { e as executeInViteNode } from './chunk-runtime-mocker.23b62bfa.mjs';
|
|
6
|
+
import { r as rpc } from './chunk-runtime-rpc.b50ab560.mjs';
|
|
7
7
|
import { g as getWorkerState } from './chunk-utils-global.fa20c2f6.mjs';
|
|
8
8
|
import 'path';
|
|
9
9
|
import 'tty';
|
|
@@ -11,7 +11,7 @@ import 'local-pkg';
|
|
|
11
11
|
import 'module';
|
|
12
12
|
import 'url';
|
|
13
13
|
import 'vm';
|
|
14
|
-
import './chunk-vite-node-utils.
|
|
14
|
+
import './chunk-vite-node-utils.f34df9d3.mjs';
|
|
15
15
|
import 'fs';
|
|
16
16
|
import 'assert';
|
|
17
17
|
import 'util';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@types/chai": "^4.3.
|
|
93
|
+
"@types/chai": "^4.3.3",
|
|
94
94
|
"@types/chai-subset": "^1.3.3",
|
|
95
95
|
"@types/node": "*",
|
|
96
96
|
"chai": "^4.3.6",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@antfu/install-pkg": "^0.1.0",
|
|
105
|
-
"@edge-runtime/vm": "1.1.0-beta.
|
|
105
|
+
"@edge-runtime/vm": "1.1.0-beta.26",
|
|
106
106
|
"@sinonjs/fake-timers": "^9.1.2",
|
|
107
107
|
"@types/diff": "^5.0.2",
|
|
108
108
|
"@types/jsdom": "^20.0.0",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"@types/natural-compare": "^1.4.1",
|
|
111
111
|
"@types/prompts": "^2.4.0",
|
|
112
112
|
"@types/sinonjs__fake-timers": "^8.1.2",
|
|
113
|
-
"@vitest/ui": "0.21.
|
|
113
|
+
"@vitest/ui": "0.21.1",
|
|
114
114
|
"birpc": "^0.2.3",
|
|
115
115
|
"c8": "^7.12.0",
|
|
116
116
|
"cac": "^6.7.12",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"log-update": "^5.0.1",
|
|
127
127
|
"magic-string": "^0.26.2",
|
|
128
128
|
"micromatch": "^4.0.5",
|
|
129
|
-
"mlly": "^0.5.
|
|
129
|
+
"mlly": "^0.5.7",
|
|
130
130
|
"natural-compare": "^1.4.0",
|
|
131
131
|
"p-limit": "^4.0.0",
|
|
132
132
|
"pathe": "^0.2.0",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"source-map-js": "^1.0.2",
|
|
139
139
|
"strip-ansi": "^7.0.1",
|
|
140
140
|
"typescript": "^4.7.4",
|
|
141
|
-
"vite-node": "0.21.
|
|
141
|
+
"vite-node": "0.21.1",
|
|
142
142
|
"ws": "^8.8.1"
|
|
143
143
|
},
|
|
144
144
|
"scripts": {
|