vitest 1.2.0 → 1.2.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/dist/browser.d.ts +1 -1
- package/dist/browser.js +1 -1
- package/dist/chunks/{api-setup.MAoRkVWJ.js → api-setup.omeaEsoT.js} +4 -4
- package/dist/chunks/{integrations-globals.VbxbZ7hn.js → integrations-globals.9QpVy4UR.js} +3 -3
- package/dist/chunks/{runtime-console.hf2msWA9.js → runtime-console.Iloo9fIt.js} +2 -2
- package/dist/chunks/{runtime-runBaseTests.LWFmrzDk.js → runtime-runBaseTests.S8ZSFig3.js} +6 -6
- package/dist/cli.js +4 -4
- package/dist/config.d.ts +1 -74
- package/dist/coverage.d.ts +1 -1
- package/dist/environments.d.ts +1 -1
- package/dist/execute.d.ts +1 -1
- package/dist/execute.js +2 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.js +4 -4
- package/dist/node.d.ts +2 -2
- package/dist/node.js +4 -4
- package/dist/{reporters-trlZlObr.d.ts → reporters-rzC174PQ.d.ts} +78 -3
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +3 -3
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +2 -2
- package/dist/{suite-6Pt_ep5V.d.ts → suite-MFRDkZcV.d.ts} +1 -1
- package/dist/suite.d.ts +2 -2
- package/dist/vendor/{base.8wUUWReP.js → base.4sEqnqgY.js} +2 -2
- package/dist/vendor/{base.dzu0Y6Hj.js → base.QYERqzkH.js} +1 -1
- package/dist/vendor/{execute.3_hyGknJ.js → execute.edwByI27.js} +1 -1
- package/dist/vendor/{index.D-jOsMas.js → index.kwCLJK4i.js} +1 -1
- package/dist/vendor/{index.3iX2R_Z5.js → index.vs_-lzuF.js} +1 -1
- package/dist/vendor/{node.xyYo9ZvH.js → node.p6h5JSuL.js} +81 -49
- package/dist/vendor/{reporters.2PaQ2peU.js → reporters.cA9x-5v-.js} +2 -2
- package/dist/vendor/{setup-common.j9IXYrbN.js → setup-common.4GIL70qB.js} +1 -1
- package/dist/vendor/{vi.smj1Ggd4.js → vi.Bw2UL9c9.js} +13 -4
- package/dist/vendor/{vm.vFKXXdo0.js → vm.9N6CwTZh.js} +2 -2
- package/dist/worker.js +1 -1
- package/dist/workers/forks.js +3 -3
- package/dist/workers/runVmTests.js +5 -5
- package/dist/workers/threads.js +3 -3
- package/dist/workers/vmForks.js +4 -4
- package/dist/workers/vmThreads.js +4 -4
- package/dist/workers.d.ts +1 -1
- package/dist/workers.js +5 -5
- package/package.json +8 -8
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { processError, startTests } from '@vitest/runner';
|
|
2
|
-
import { R as ResolvedConfig,
|
|
2
|
+
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-rzC174PQ.js';
|
|
3
3
|
import { VitestExecutor } from './execute.js';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import 'vite-node';
|
package/dist/browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { processError, startTests } from '@vitest/runner';
|
|
2
|
-
export { l as loadDiffConfig, s as setupCommonEnv } from './vendor/setup-common.
|
|
2
|
+
export { l as loadDiffConfig, s as setupCommonEnv } from './vendor/setup-common.4GIL70qB.js';
|
|
3
3
|
export { g as getCoverageProvider, a as startCoverageInsideWorker, s as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './vendor/coverage.E7sG1b3r.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import './vendor/run-once.Olz_Zkd8.js';
|
|
@@ -15,10 +15,10 @@ import { g as getDefaultExportFromCjs } from '../vendor/_commonjsHelpers.jjO7Zip
|
|
|
15
15
|
import { isFileServingAllowed } from 'vite';
|
|
16
16
|
import { A as API_PATH } from '../vendor/constants.i1PoEnhr.js';
|
|
17
17
|
import '../vendor/index.rJjbcrrp.js';
|
|
18
|
-
import { W as WorkspaceProject } from '../vendor/node.
|
|
18
|
+
import { W as WorkspaceProject } from '../vendor/node.p6h5JSuL.js';
|
|
19
19
|
import '@vitest/utils';
|
|
20
20
|
import { parseErrorStacktrace } from '@vitest/utils/source-map';
|
|
21
|
-
import { a as isPrimitive } from '../vendor/base.
|
|
21
|
+
import { a as isPrimitive } from '../vendor/base.QYERqzkH.js';
|
|
22
22
|
import 'std-env';
|
|
23
23
|
import '@vitest/runner/utils';
|
|
24
24
|
import '../vendor/global.CkGT_TMy.js';
|
|
@@ -46,8 +46,8 @@ import 'node:perf_hooks';
|
|
|
46
46
|
import 'execa';
|
|
47
47
|
import 'module';
|
|
48
48
|
import 'acorn-walk';
|
|
49
|
-
import '../vendor/reporters.
|
|
50
|
-
import './runtime-console.
|
|
49
|
+
import '../vendor/reporters.cA9x-5v-.js';
|
|
50
|
+
import './runtime-console.Iloo9fIt.js';
|
|
51
51
|
import 'node:stream';
|
|
52
52
|
import 'node:console';
|
|
53
53
|
import '../vendor/date.Ns1pGd_X.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as globalApis } from '../vendor/constants.i1PoEnhr.js';
|
|
2
|
-
import { V as VitestIndex } from '../vendor/index.
|
|
2
|
+
import { V as VitestIndex } from '../vendor/index.vs_-lzuF.js';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import '../vendor/benchmark.IlKmJkUU.js';
|
|
5
5
|
import '@vitest/runner/utils';
|
|
@@ -9,7 +9,7 @@ import 'pathe';
|
|
|
9
9
|
import 'std-env';
|
|
10
10
|
import '../vendor/global.CkGT_TMy.js';
|
|
11
11
|
import '../vendor/run-once.Olz_Zkd8.js';
|
|
12
|
-
import '../vendor/vi.
|
|
12
|
+
import '../vendor/vi.Bw2UL9c9.js';
|
|
13
13
|
import 'chai';
|
|
14
14
|
import '../vendor/_commonjsHelpers.jjO7Zipk.js';
|
|
15
15
|
import '@vitest/expect';
|
|
@@ -17,7 +17,7 @@ import '@vitest/snapshot';
|
|
|
17
17
|
import '@vitest/utils/error';
|
|
18
18
|
import '../vendor/tasks.IknbGB2n.js';
|
|
19
19
|
import '@vitest/utils/source-map';
|
|
20
|
-
import '../vendor/base.
|
|
20
|
+
import '../vendor/base.QYERqzkH.js';
|
|
21
21
|
import '../vendor/date.Ns1pGd_X.js';
|
|
22
22
|
import '@vitest/spy';
|
|
23
23
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Writable } from 'node:stream';
|
|
2
2
|
import { Console } from 'node:console';
|
|
3
3
|
import { relative } from 'node:path';
|
|
4
|
-
import { getSafeTimers } from '@vitest/utils';
|
|
4
|
+
import { getSafeTimers, getColors } from '@vitest/utils';
|
|
5
5
|
import { R as RealDate } from '../vendor/date.Ns1pGd_X.js';
|
|
6
6
|
|
|
7
7
|
const UNKNOWN_TEST_ID = "__vitest__unknown_test__";
|
|
@@ -115,7 +115,7 @@ function createCustomConsole(state) {
|
|
|
115
115
|
return new Console({
|
|
116
116
|
stdout,
|
|
117
117
|
stderr,
|
|
118
|
-
colorMode:
|
|
118
|
+
colorMode: getColors().isColorSupported,
|
|
119
119
|
groupIndentation: 2
|
|
120
120
|
});
|
|
121
121
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { performance } from 'node:perf_hooks';
|
|
2
2
|
import { startTests } from '@vitest/runner';
|
|
3
3
|
import '../vendor/index.rJjbcrrp.js';
|
|
4
|
-
import { a as globalExpect, r as resetModules, v as vi } from '../vendor/vi.
|
|
4
|
+
import { a as globalExpect, r as resetModules, v as vi } from '../vendor/vi.Bw2UL9c9.js';
|
|
5
5
|
import { a as startCoverageInsideWorker, s as stopCoverageInsideWorker } from '../vendor/coverage.E7sG1b3r.js';
|
|
6
|
-
import { V as VitestSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from '../vendor/index.
|
|
6
|
+
import { V as VitestSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from '../vendor/index.kwCLJK4i.js';
|
|
7
7
|
import { createRequire } from 'node:module';
|
|
8
8
|
import util from 'node:util';
|
|
9
9
|
import timers from 'node:timers';
|
|
10
10
|
import { isatty } from 'node:tty';
|
|
11
11
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
12
12
|
import { setupColors, createColors, getSafeTimers } from '@vitest/utils';
|
|
13
|
-
import { V as VitestIndex } from '../vendor/index.
|
|
14
|
-
import { s as setupCommonEnv } from '../vendor/setup-common.
|
|
13
|
+
import { V as VitestIndex } from '../vendor/index.vs_-lzuF.js';
|
|
14
|
+
import { s as setupCommonEnv } from '../vendor/setup-common.4GIL70qB.js';
|
|
15
15
|
import { g as getWorkerState } from '../vendor/global.CkGT_TMy.js';
|
|
16
16
|
import 'pathe';
|
|
17
17
|
import 'std-env';
|
|
@@ -23,7 +23,7 @@ import '@vitest/snapshot';
|
|
|
23
23
|
import '@vitest/utils/error';
|
|
24
24
|
import '../vendor/tasks.IknbGB2n.js';
|
|
25
25
|
import '@vitest/utils/source-map';
|
|
26
|
-
import '../vendor/base.
|
|
26
|
+
import '../vendor/base.QYERqzkH.js';
|
|
27
27
|
import '../vendor/date.Ns1pGd_X.js';
|
|
28
28
|
import '@vitest/spy';
|
|
29
29
|
import '@vitest/snapshot/environment';
|
|
@@ -69,7 +69,7 @@ async function setupGlobalEnv(config, { environment }) {
|
|
|
69
69
|
await setupConsoleLogSpy(state);
|
|
70
70
|
}
|
|
71
71
|
async function setupConsoleLogSpy(state) {
|
|
72
|
-
const { createCustomConsole } = await import('./runtime-console.
|
|
72
|
+
const { createCustomConsole } = await import('./runtime-console.Iloo9fIt.js');
|
|
73
73
|
globalThis.console = createCustomConsole(state);
|
|
74
74
|
}
|
|
75
75
|
async function withEnv({ environment }, options, fn) {
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { normalize } from 'pathe';
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import c from 'picocolors';
|
|
4
|
-
import { v as version, s as startVitest } from './vendor/node.
|
|
4
|
+
import { v as version, s as startVitest } from './vendor/node.p6h5JSuL.js';
|
|
5
5
|
import './vendor/index.rJjbcrrp.js';
|
|
6
|
-
import { d as divider } from './vendor/reporters.
|
|
7
|
-
import { t as toArray } from './vendor/base.
|
|
6
|
+
import { d as divider } from './vendor/reporters.cA9x-5v-.js';
|
|
7
|
+
import { t as toArray } from './vendor/base.QYERqzkH.js';
|
|
8
8
|
import 'vite';
|
|
9
9
|
import 'node:path';
|
|
10
10
|
import 'node:url';
|
|
@@ -52,7 +52,7 @@ import 'node:console';
|
|
|
52
52
|
import 'node:readline';
|
|
53
53
|
import 'readline';
|
|
54
54
|
import './vendor/global.CkGT_TMy.js';
|
|
55
|
-
import './chunks/runtime-console.
|
|
55
|
+
import './chunks/runtime-console.Iloo9fIt.js';
|
|
56
56
|
import 'node:stream';
|
|
57
57
|
import './vendor/date.Ns1pGd_X.js';
|
|
58
58
|
import './vendor/tasks.IknbGB2n.js';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { UserConfig, ConfigEnv } from 'vite';
|
|
2
1
|
export { ConfigEnv, UserConfig, mergeConfig } from 'vite';
|
|
3
|
-
|
|
2
|
+
export { aw as UserConfigExport, av as UserConfigFn, at as UserConfigFnObject, au as UserConfigFnPromise, ay as UserProjectConfigExport, ax as UserProjectConfigFn, a0 as UserWorkspaceConfig, aC as configDefaults, aF as coverageConfigDefaults, aE as defaultExclude, aD as defaultInclude, az as defineConfig, aA as defineProject, aB as defineWorkspace, aG as extraInlineDeps } from './reporters-rzC174PQ.js';
|
|
4
3
|
import '@vitest/runner';
|
|
5
4
|
import 'vite-node';
|
|
6
5
|
import '@vitest/snapshot';
|
|
@@ -14,75 +13,3 @@ import 'vite-node/server';
|
|
|
14
13
|
import 'node:worker_threads';
|
|
15
14
|
import 'node:fs';
|
|
16
15
|
import 'chai';
|
|
17
|
-
|
|
18
|
-
declare const defaultInclude: string[];
|
|
19
|
-
declare const defaultExclude: string[];
|
|
20
|
-
declare const coverageConfigDefaults: ResolvedCoverageOptions;
|
|
21
|
-
declare const configDefaults: Readonly<{
|
|
22
|
-
allowOnly: boolean;
|
|
23
|
-
isolate: true;
|
|
24
|
-
watch: boolean;
|
|
25
|
-
globals: false;
|
|
26
|
-
environment: "node";
|
|
27
|
-
pool: "threads";
|
|
28
|
-
clearMocks: false;
|
|
29
|
-
restoreMocks: false;
|
|
30
|
-
mockReset: false;
|
|
31
|
-
include: string[];
|
|
32
|
-
exclude: string[];
|
|
33
|
-
testTimeout: number;
|
|
34
|
-
hookTimeout: number;
|
|
35
|
-
teardownTimeout: number;
|
|
36
|
-
watchExclude: string[];
|
|
37
|
-
forceRerunTriggers: string[];
|
|
38
|
-
update: false;
|
|
39
|
-
reporters: never[];
|
|
40
|
-
silent: false;
|
|
41
|
-
hideSkippedTests: false;
|
|
42
|
-
api: false;
|
|
43
|
-
ui: false;
|
|
44
|
-
uiBase: string;
|
|
45
|
-
open: boolean;
|
|
46
|
-
css: {
|
|
47
|
-
include: never[];
|
|
48
|
-
};
|
|
49
|
-
coverage: CoverageV8Options;
|
|
50
|
-
fakeTimers: {
|
|
51
|
-
loopLimit: number;
|
|
52
|
-
shouldClearNativeTimers: true;
|
|
53
|
-
toFake: ("setTimeout" | "setInterval" | "clearInterval" | "clearTimeout" | "setImmediate" | "clearImmediate" | "Date")[];
|
|
54
|
-
};
|
|
55
|
-
maxConcurrency: number;
|
|
56
|
-
dangerouslyIgnoreUnhandledErrors: false;
|
|
57
|
-
typecheck: {
|
|
58
|
-
checker: "tsc";
|
|
59
|
-
include: string[];
|
|
60
|
-
exclude: string[];
|
|
61
|
-
};
|
|
62
|
-
slowTestThreshold: number;
|
|
63
|
-
disableConsoleIntercept: false;
|
|
64
|
-
}>;
|
|
65
|
-
|
|
66
|
-
declare const extraInlineDeps: (string | RegExp)[];
|
|
67
|
-
|
|
68
|
-
interface UserWorkspaceConfig extends UserConfig {
|
|
69
|
-
test?: ProjectConfig;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
type UserConfigFnObject = (env: ConfigEnv) => UserConfig;
|
|
73
|
-
type UserConfigFnPromise = (env: ConfigEnv) => Promise<UserConfig>;
|
|
74
|
-
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<UserConfig>;
|
|
75
|
-
type UserConfigExport = UserConfig | Promise<UserConfig> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
76
|
-
type UserProjectConfigFn = (env: ConfigEnv) => UserWorkspaceConfig | Promise<UserWorkspaceConfig>;
|
|
77
|
-
type UserProjectConfigExport = UserWorkspaceConfig | Promise<UserWorkspaceConfig> | UserProjectConfigFn;
|
|
78
|
-
declare function defineConfig(config: UserConfig): UserConfig;
|
|
79
|
-
declare function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>;
|
|
80
|
-
declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
81
|
-
declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
82
|
-
declare function defineProject<T extends UserProjectConfigExport>(config: T): T;
|
|
83
|
-
type Workspace = (string | (UserProjectConfigExport & {
|
|
84
|
-
extends?: string;
|
|
85
|
-
}));
|
|
86
|
-
declare function defineWorkspace(config: Workspace[]): Workspace[];
|
|
87
|
-
|
|
88
|
-
export { type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserProjectConfigExport, type UserProjectConfigFn, type UserWorkspaceConfig, configDefaults, coverageConfigDefaults, defaultExclude, defaultInclude, defineConfig, defineProject, defineWorkspace, extraInlineDeps };
|
package/dist/coverage.d.ts
CHANGED
package/dist/environments.d.ts
CHANGED
package/dist/execute.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import vm from 'node:vm';
|
|
2
2
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
3
3
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
4
|
-
import {
|
|
4
|
+
import { aq as PendingSuiteMock, ar as MockFactory, f as RuntimeRPC, p as WorkerGlobalState, as as MockMap } from './reporters-rzC174PQ.js';
|
|
5
5
|
import 'vite';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import '@vitest/snapshot';
|
package/dist/execute.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { V as VitestExecutor } from './vendor/execute.
|
|
1
|
+
export { V as VitestExecutor } from './vendor/execute.edwByI27.js';
|
|
2
2
|
import 'node:vm';
|
|
3
3
|
import 'node:url';
|
|
4
4
|
import 'vite-node/client';
|
|
@@ -8,4 +8,4 @@ import '@vitest/utils/error';
|
|
|
8
8
|
import './path.js';
|
|
9
9
|
import 'node:fs';
|
|
10
10
|
import '@vitest/utils';
|
|
11
|
-
import './vendor/base.
|
|
11
|
+
import './vendor/base.QYERqzkH.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TaskPopulated, File, TaskResultPack, CancelReason } from '@vitest/runner';
|
|
2
2
|
export { Custom, DoneCallback, ExtendedContext, File, HookCleanupCallback, HookListener, OnTestFailedHandler, RunMode, RuntimeContext, SequenceHooks, SequenceSetupFiles, Suite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteHooks, Task, TaskBase, TaskContext, TaskCustomOptions, TaskMeta, TaskResult, TaskResultPack, TaskState, Test, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, suite, test } from '@vitest/runner';
|
|
3
|
-
export { b as bench } from './suite-
|
|
3
|
+
export { b as bench } from './suite-MFRDkZcV.js';
|
|
4
4
|
import { ExpectStatic } from '@vitest/expect';
|
|
5
5
|
export { Assertion, AsymmetricMatchersContaining, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
6
|
-
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper,
|
|
7
|
-
export {
|
|
6
|
+
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper, r as RuntimeConfig, P as ProvidedContext, A as AfterSuiteRunMeta, t as UserConsoleLog, R as ResolvedConfig, u as ModuleGraphData, v as Reporter } from './reporters-rzC174PQ.js';
|
|
7
|
+
export { Q as ApiConfig, a9 as ArgumentsType, a8 as Arrayable, a6 as Awaitable, B as BaseCoverageOptions, ao as BenchFunction, am as Benchmark, ap as BenchmarkAPI, an as BenchmarkResult, al as BenchmarkUserOptions, L as BuiltinEnvironment, O as CSSModuleScopeStrategy, y as CollectLineNumbers, z as CollectLines, ab as Constructable, G as Context, o as ContextRPC, a2 as ContextTestEnvironment, ai as CoverageIstanbulOptions, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, ah as CoverageReporter, aj as CoverageV8Options, ak as CustomProviderOptions, X as DepsOptimizationOptions, E as Environment, S as EnvironmentOptions, ad as EnvironmentReturn, K as HappyDOMOptions, Z as InlineConfig, J as JSDOMOptions, ac as ModuleCache, aa as MutableArray, a7 as Nullable, af as OnServerRestartHandler, H as Pool, I as PoolOptions, $ as ProjectConfig, w as RawErrsMap, ag as ReportContext, a4 as ResolveIdFunction, a as ResolvedCoverageOptions, a3 as ResolvedTestEnvironment, D as RootAndTarget, a1 as RunnerRPC, f as RuntimeRPC, Y as TransformModePatterns, x as TscErrorInfo, _ as TypecheckConfig, U as UserConfig, a0 as UserWorkspaceConfig, e as Vitest, N as VitestEnvironment, V as VitestRunMode, ae as VmEnvironmentReturn, q as WorkerContext, p as WorkerGlobalState, a5 as WorkerRPC } from './reporters-rzC174PQ.js';
|
|
8
8
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
9
9
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject, SpyInstance } from '@vitest/spy';
|
|
10
10
|
export { SnapshotEnvironment } from '@vitest/snapshot/environment';
|
|
@@ -15,7 +15,6 @@ import { TransformResult } from 'vite';
|
|
|
15
15
|
import * as chai from 'chai';
|
|
16
16
|
export { chai };
|
|
17
17
|
export { assert, should } from 'chai';
|
|
18
|
-
export { UserWorkspaceConfig } from './config.js';
|
|
19
18
|
export { ErrorWithDiff, ParsedStack } from '@vitest/utils';
|
|
20
19
|
export { Bench as BenchFactory, Options as BenchOptions, Task as BenchTask, TaskResult as BenchTaskResult } from 'tinybench';
|
|
21
20
|
import '@vitest/runner/utils';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, suite, test } from '@vitest/runner';
|
|
2
2
|
export { b as bench } from './vendor/benchmark.IlKmJkUU.js';
|
|
3
3
|
export { i as isFirstRun, a as runOnce } from './vendor/run-once.Olz_Zkd8.js';
|
|
4
|
-
export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.
|
|
5
|
-
import { d as dist } from './vendor/index.
|
|
6
|
-
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.
|
|
4
|
+
export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.Bw2UL9c9.js';
|
|
5
|
+
import { d as dist } from './vendor/index.vs_-lzuF.js';
|
|
6
|
+
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.vs_-lzuF.js';
|
|
7
7
|
import * as chai from 'chai';
|
|
8
8
|
export { chai };
|
|
9
9
|
export { assert, should } from 'chai';
|
|
@@ -19,7 +19,7 @@ import '@vitest/snapshot';
|
|
|
19
19
|
import '@vitest/utils/error';
|
|
20
20
|
import './vendor/tasks.IknbGB2n.js';
|
|
21
21
|
import '@vitest/utils/source-map';
|
|
22
|
-
import './vendor/base.
|
|
22
|
+
import './vendor/base.QYERqzkH.js';
|
|
23
23
|
import './vendor/date.Ns1pGd_X.js';
|
|
24
24
|
import '@vitest/spy';
|
|
25
25
|
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VitestRunMode, U as UserConfig,
|
|
2
|
-
export {
|
|
1
|
+
import { V as VitestRunMode, U as UserConfig, d as VitestOptions, e as Vitest, R as ResolvedConfig, P as ProvidedContext, W as WorkspaceProject, f as RuntimeRPC, T as TestSequencer, g as WorkspaceSpec } from './reporters-rzC174PQ.js';
|
|
2
|
+
export { l as BrowserProvider, k as BrowserProviderInitializationOptions, m as BrowserProviderOptions, h as ProcessPool, j as TestSequencerConstructor, i as VitestPackageInstaller, s as startVitest } from './reporters-rzC174PQ.js';
|
|
3
3
|
import { UserConfig as UserConfig$1, Plugin } from 'vite';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import 'vite-node';
|
package/dist/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BaseSequencer, b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/node.
|
|
1
|
+
export { B as BaseSequencer, b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/node.p6h5JSuL.js';
|
|
2
2
|
import 'pathe';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import 'node:path';
|
|
@@ -30,7 +30,7 @@ import 'node:os';
|
|
|
30
30
|
import 'node:events';
|
|
31
31
|
import 'tinypool';
|
|
32
32
|
import './vendor/index.cAUulNDf.js';
|
|
33
|
-
import './vendor/base.
|
|
33
|
+
import './vendor/base.QYERqzkH.js';
|
|
34
34
|
import 'node:worker_threads';
|
|
35
35
|
import 'node:fs/promises';
|
|
36
36
|
import 'node:perf_hooks';
|
|
@@ -38,8 +38,8 @@ import 'execa';
|
|
|
38
38
|
import '@vitest/utils/source-map';
|
|
39
39
|
import 'module';
|
|
40
40
|
import 'acorn-walk';
|
|
41
|
-
import './vendor/reporters.
|
|
42
|
-
import './chunks/runtime-console.
|
|
41
|
+
import './vendor/reporters.cA9x-5v-.js';
|
|
42
|
+
import './chunks/runtime-console.Iloo9fIt.js';
|
|
43
43
|
import 'node:stream';
|
|
44
44
|
import 'node:console';
|
|
45
45
|
import './vendor/date.Ns1pGd_X.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { ViteDevServer, TransformResult as TransformResult$1, UserConfig as UserConfig$1, ServerOptions, DepOptimizationConfig, AliasOptions } from 'vite';
|
|
2
|
+
import { ViteDevServer, TransformResult as TransformResult$1, UserConfig as UserConfig$1, ConfigEnv, ServerOptions, DepOptimizationConfig, AliasOptions } from 'vite';
|
|
3
3
|
import * as _vitest_runner from '@vitest/runner';
|
|
4
4
|
import { File, Test as Test$1, Suite, TaskResultPack, Task, CancelReason, Custom, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
5
5
|
import { RawSourceMap, FetchResult, ViteNodeResolveId, ModuleCacheMap, ViteNodeServerOptions } from 'vite-node';
|
|
@@ -463,9 +463,14 @@ declare class Logger {
|
|
|
463
463
|
printSourceTypeErrors(errors: TypeCheckError[]): Promise<void>;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
+
interface InitializeProjectOptions extends UserWorkspaceConfig {
|
|
467
|
+
workspaceConfigPath: string;
|
|
468
|
+
extends?: string;
|
|
469
|
+
}
|
|
466
470
|
declare class WorkspaceProject {
|
|
467
471
|
path: string | number;
|
|
468
472
|
ctx: Vitest;
|
|
473
|
+
options?: InitializeProjectOptions | undefined;
|
|
469
474
|
configOverride: Partial<ResolvedConfig> | undefined;
|
|
470
475
|
config: ResolvedConfig;
|
|
471
476
|
server: ViteDevServer;
|
|
@@ -478,7 +483,7 @@ declare class WorkspaceProject {
|
|
|
478
483
|
testFilesList: string[] | null;
|
|
479
484
|
private _globalSetups;
|
|
480
485
|
private _provided;
|
|
481
|
-
constructor(path: string | number, ctx: Vitest);
|
|
486
|
+
constructor(path: string | number, ctx: Vitest, options?: InitializeProjectOptions | undefined);
|
|
482
487
|
getName(): string;
|
|
483
488
|
isCore(): boolean;
|
|
484
489
|
provide: (key: string, value: unknown) => void;
|
|
@@ -1718,6 +1723,76 @@ type BenchmarkAPI = ChainableBenchmarkAPI & {
|
|
|
1718
1723
|
runIf(condition: any): ChainableBenchmarkAPI;
|
|
1719
1724
|
};
|
|
1720
1725
|
|
|
1726
|
+
declare const defaultInclude: string[];
|
|
1727
|
+
declare const defaultExclude: string[];
|
|
1728
|
+
declare const coverageConfigDefaults: ResolvedCoverageOptions;
|
|
1729
|
+
declare const configDefaults: Readonly<{
|
|
1730
|
+
allowOnly: boolean;
|
|
1731
|
+
isolate: true;
|
|
1732
|
+
watch: boolean;
|
|
1733
|
+
globals: false;
|
|
1734
|
+
environment: "node";
|
|
1735
|
+
pool: "threads";
|
|
1736
|
+
clearMocks: false;
|
|
1737
|
+
restoreMocks: false;
|
|
1738
|
+
mockReset: false;
|
|
1739
|
+
include: string[];
|
|
1740
|
+
exclude: string[];
|
|
1741
|
+
testTimeout: number;
|
|
1742
|
+
hookTimeout: number;
|
|
1743
|
+
teardownTimeout: number;
|
|
1744
|
+
watchExclude: string[];
|
|
1745
|
+
forceRerunTriggers: string[];
|
|
1746
|
+
update: false;
|
|
1747
|
+
reporters: never[];
|
|
1748
|
+
silent: false;
|
|
1749
|
+
hideSkippedTests: false;
|
|
1750
|
+
api: false;
|
|
1751
|
+
ui: false;
|
|
1752
|
+
uiBase: string;
|
|
1753
|
+
open: boolean;
|
|
1754
|
+
css: {
|
|
1755
|
+
include: never[];
|
|
1756
|
+
};
|
|
1757
|
+
coverage: CoverageV8Options;
|
|
1758
|
+
fakeTimers: {
|
|
1759
|
+
loopLimit: number;
|
|
1760
|
+
shouldClearNativeTimers: true;
|
|
1761
|
+
toFake: ("setTimeout" | "setInterval" | "clearInterval" | "clearTimeout" | "setImmediate" | "clearImmediate" | "Date")[];
|
|
1762
|
+
};
|
|
1763
|
+
maxConcurrency: number;
|
|
1764
|
+
dangerouslyIgnoreUnhandledErrors: false;
|
|
1765
|
+
typecheck: {
|
|
1766
|
+
checker: "tsc";
|
|
1767
|
+
include: string[];
|
|
1768
|
+
exclude: string[];
|
|
1769
|
+
};
|
|
1770
|
+
slowTestThreshold: number;
|
|
1771
|
+
disableConsoleIntercept: false;
|
|
1772
|
+
}>;
|
|
1773
|
+
|
|
1774
|
+
declare const extraInlineDeps: (string | RegExp)[];
|
|
1775
|
+
|
|
1776
|
+
interface UserWorkspaceConfig extends UserConfig$1 {
|
|
1777
|
+
test?: ProjectConfig;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
type UserConfigFnObject = (env: ConfigEnv) => UserConfig$1;
|
|
1781
|
+
type UserConfigFnPromise = (env: ConfigEnv) => Promise<UserConfig$1>;
|
|
1782
|
+
type UserConfigFn = (env: ConfigEnv) => UserConfig$1 | Promise<UserConfig$1>;
|
|
1783
|
+
type UserConfigExport = UserConfig$1 | Promise<UserConfig$1> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
1784
|
+
type UserProjectConfigFn = (env: ConfigEnv) => UserWorkspaceConfig | Promise<UserWorkspaceConfig>;
|
|
1785
|
+
type UserProjectConfigExport = UserWorkspaceConfig | Promise<UserWorkspaceConfig> | UserProjectConfigFn;
|
|
1786
|
+
declare function defineConfig(config: UserConfig$1): UserConfig$1;
|
|
1787
|
+
declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig$1>;
|
|
1788
|
+
declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
1789
|
+
declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
1790
|
+
declare function defineProject<T extends UserProjectConfigExport>(config: T): T;
|
|
1791
|
+
type Workspace = (string | (UserProjectConfigExport & {
|
|
1792
|
+
extends?: string;
|
|
1793
|
+
}));
|
|
1794
|
+
declare function defineWorkspace(config: Workspace[]): Workspace[];
|
|
1795
|
+
|
|
1721
1796
|
type BuiltinEnvironment = 'node' | 'jsdom' | 'happy-dom' | 'edge-runtime';
|
|
1722
1797
|
type VitestEnvironment = BuiltinEnvironment | (string & Record<never, never>);
|
|
1723
1798
|
|
|
@@ -2521,4 +2596,4 @@ type Context = RootAndTarget & {
|
|
|
2521
2596
|
lastActivePath?: string;
|
|
2522
2597
|
};
|
|
2523
2598
|
|
|
2524
|
-
export { type
|
|
2599
|
+
export { type ProjectConfig as $, type AfterSuiteRunMeta as A, type BaseCoverageOptions as B, type CoverageOptions as C, type RootAndTarget as D, type Environment as E, type FakeTimerInstallOpts as F, type Context as G, type Pool as H, type PoolOptions as I, type JSDOMOptions as J, type HappyDOMOptions as K, type BuiltinEnvironment as L, type MockFactoryWithHelper as M, type VitestEnvironment as N, type CSSModuleScopeStrategy as O, type ProvidedContext as P, type ApiConfig as Q, type ResolvedConfig as R, type EnvironmentOptions as S, type TestSequencer as T, type UserConfig as U, type VitestRunMode as V, WorkspaceProject as W, type DepsOptimizationOptions as X, type TransformModePatterns as Y, type InlineConfig as Z, type TypecheckConfig as _, type ResolvedCoverageOptions as a, type UserWorkspaceConfig as a0, type RunnerRPC as a1, type ContextTestEnvironment as a2, type ResolvedTestEnvironment as a3, type ResolveIdFunction as a4, type WorkerRPC as a5, type Awaitable as a6, type Nullable as a7, type Arrayable as a8, type ArgumentsType$1 as a9, defineProject as aA, defineWorkspace as aB, configDefaults as aC, defaultInclude as aD, defaultExclude as aE, coverageConfigDefaults as aF, extraInlineDeps as aG, DefaultReporter as aH, BasicReporter as aI, DotReporter as aJ, JsonReporter$1 as aK, VerboseReporter as aL, TapReporter as aM, JUnitReporter as aN, TapFlatReporter as aO, HangingProcessReporter as aP, BaseReporter as aQ, ReportersMap as aR, type BuiltinReporters as aS, BenchmarkReportsMap as aT, type BenchmarkBuiltinReporters as aU, type MutableArray as aa, type Constructable as ab, type ModuleCache as ac, type EnvironmentReturn as ad, type VmEnvironmentReturn as ae, type OnServerRestartHandler as af, type ReportContext as ag, type CoverageReporter as ah, type CoverageIstanbulOptions as ai, type CoverageV8Options as aj, type CustomProviderOptions as ak, type BenchmarkUserOptions as al, type Benchmark as am, type BenchmarkResult as an, type BenchFunction as ao, type BenchmarkAPI as ap, type PendingSuiteMock as aq, type MockFactory as ar, type MockMap as as, type UserConfigFnObject as at, type UserConfigFnPromise as au, type UserConfigFn as av, type UserConfigExport as aw, type UserProjectConfigFn as ax, type UserProjectConfigExport as ay, defineConfig as az, type CoverageProvider as b, type CoverageProviderModule as c, type VitestOptions as d, Vitest as e, type RuntimeRPC as f, type WorkspaceSpec as g, type ProcessPool as h, VitestPackageInstaller as i, type TestSequencerConstructor as j, type BrowserProviderInitializationOptions as k, type BrowserProvider as l, type BrowserProviderOptions as m, type BirpcOptions as n, type ContextRPC as o, type WorkerGlobalState as p, type WorkerContext as q, type RuntimeConfig as r, startVitest as s, type UserConsoleLog as t, type ModuleGraphData as u, type Reporter as v, type RawErrsMap as w, type TscErrorInfo as x, type CollectLineNumbers as y, type CollectLines as z };
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aQ as BaseReporter, aI as BasicReporter, aU as BenchmarkBuiltinReporters, aT as BenchmarkReportsMap, aS as BuiltinReporters, aH as DefaultReporter, aJ as DotReporter, aP as HangingProcessReporter, aN as JUnitReporter, aK as JsonReporter, v as Reporter, aR as ReportersMap, aO as TapFlatReporter, aM as TapReporter, aL as VerboseReporter } from './reporters-rzC174PQ.js';
|
|
2
2
|
import 'vite';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite-node';
|
package/dist/reporters.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { e as BasicReporter, B as BenchmarkReportsMap, D as DefaultReporter, f as DotReporter, H as HangingProcessReporter, g as JUnitReporter, J as JsonReporter, R as ReportersMap, h as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/reporters.
|
|
1
|
+
export { e as BasicReporter, B as BenchmarkReportsMap, D as DefaultReporter, f as DotReporter, H as HangingProcessReporter, g as JUnitReporter, J as JsonReporter, R as ReportersMap, h as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/reporters.cA9x-5v-.js';
|
|
2
2
|
import 'node:perf_hooks';
|
|
3
3
|
import 'picocolors';
|
|
4
4
|
import './vendor/index.rJjbcrrp.js';
|
|
@@ -7,12 +7,12 @@ import 'std-env';
|
|
|
7
7
|
import '@vitest/runner/utils';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import './vendor/global.CkGT_TMy.js';
|
|
10
|
-
import './chunks/runtime-console.
|
|
10
|
+
import './chunks/runtime-console.Iloo9fIt.js';
|
|
11
11
|
import 'node:stream';
|
|
12
12
|
import 'node:console';
|
|
13
13
|
import 'node:path';
|
|
14
14
|
import './vendor/date.Ns1pGd_X.js';
|
|
15
|
-
import './vendor/base.
|
|
15
|
+
import './vendor/base.QYERqzkH.js';
|
|
16
16
|
import './vendor/tasks.IknbGB2n.js';
|
|
17
17
|
import 'node:fs';
|
|
18
18
|
import '@vitest/utils/source-map';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VitestRunner, VitestRunnerImportSource, Suite, Test, CancelReason, Custom, TaskContext, ExtendedContext } from '@vitest/runner';
|
|
2
|
-
import { R as ResolvedConfig } from './reporters-
|
|
2
|
+
import { R as ResolvedConfig } from './reporters-rzC174PQ.js';
|
|
3
3
|
import * as tinybench from 'tinybench';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import 'vite-node';
|
package/dist/runners.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
|
|
2
|
-
import { g as getSnapshotClient, c as createExpect, v as vi } from './vendor/vi.
|
|
2
|
+
import { g as getSnapshotClient, c as createExpect, v as vi } from './vendor/vi.Bw2UL9c9.js';
|
|
3
3
|
import './vendor/index.rJjbcrrp.js';
|
|
4
4
|
import { r as rpc } from './vendor/rpc.w4v8oCkK.js';
|
|
5
5
|
import { g as getFullName } from './vendor/tasks.IknbGB2n.js';
|
|
@@ -13,7 +13,7 @@ import './vendor/_commonjsHelpers.jjO7Zipk.js';
|
|
|
13
13
|
import '@vitest/snapshot';
|
|
14
14
|
import '@vitest/utils/error';
|
|
15
15
|
import '@vitest/utils/source-map';
|
|
16
|
-
import './vendor/base.
|
|
16
|
+
import './vendor/base.QYERqzkH.js';
|
|
17
17
|
import './vendor/date.Ns1pGd_X.js';
|
|
18
18
|
import '@vitest/spy';
|
|
19
19
|
import 'pathe';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Custom } from '@vitest/runner';
|
|
2
2
|
import '@vitest/runner/utils';
|
|
3
|
-
import {
|
|
3
|
+
import { ao as BenchFunction, ap as BenchmarkAPI } from './reporters-rzC174PQ.js';
|
|
4
4
|
import { Options } from 'tinybench';
|
|
5
5
|
|
|
6
6
|
declare function getBenchOptions(key: Custom): Options;
|
package/dist/suite.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createTaskCollector, getCurrentSuite, getFn, setFn } from '@vitest/runner';
|
|
2
2
|
export { createChainable } from '@vitest/runner/utils';
|
|
3
|
-
export { g as getBenchFn, a as getBenchOptions } from './suite-
|
|
4
|
-
import './reporters-
|
|
3
|
+
export { g as getBenchFn, a as getBenchOptions } from './suite-MFRDkZcV.js';
|
|
4
|
+
import './reporters-rzC174PQ.js';
|
|
5
5
|
import 'vite';
|
|
6
6
|
import 'vite-node';
|
|
7
7
|
import '@vitest/snapshot';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleCacheMap } from 'vite-node/client';
|
|
2
2
|
import { p as provideWorkerState } from './global.CkGT_TMy.js';
|
|
3
|
-
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.
|
|
3
|
+
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.edwByI27.js';
|
|
4
4
|
|
|
5
5
|
let _viteNode;
|
|
6
6
|
const moduleCache = new ModuleCacheMap();
|
|
@@ -25,7 +25,7 @@ async function runBaseTests(state) {
|
|
|
25
25
|
ctx.files.forEach((i) => state.moduleCache.delete(i));
|
|
26
26
|
const [executor, { run }] = await Promise.all([
|
|
27
27
|
startViteNode({ state, requestStubs: getDefaultRequestStubs() }),
|
|
28
|
-
import('../chunks/runtime-runBaseTests.
|
|
28
|
+
import('../chunks/runtime-runBaseTests.S8ZSFig3.js')
|
|
29
29
|
]);
|
|
30
30
|
await run(
|
|
31
31
|
ctx.files,
|
|
@@ -7,7 +7,7 @@ import { processError } from '@vitest/utils/error';
|
|
|
7
7
|
import { distDir } from '../path.js';
|
|
8
8
|
import { existsSync, readdirSync } from 'node:fs';
|
|
9
9
|
import { highlight, getType } from '@vitest/utils';
|
|
10
|
-
import { e as getAllMockableProperties } from './base.
|
|
10
|
+
import { e as getAllMockableProperties } from './base.QYERqzkH.js';
|
|
11
11
|
|
|
12
12
|
const spyModulePath = resolve(distDir, "spy.js");
|
|
13
13
|
class RefTracker {
|
|
@@ -5,7 +5,7 @@ import { distDir } from '../path.js';
|
|
|
5
5
|
import { g as getWorkerState } from './global.CkGT_TMy.js';
|
|
6
6
|
import { r as rpc } from './rpc.w4v8oCkK.js';
|
|
7
7
|
import { t as takeCoverageInsideWorker } from './coverage.E7sG1b3r.js';
|
|
8
|
-
import { l as loadDiffConfig } from './setup-common.
|
|
8
|
+
import { l as loadDiffConfig } from './setup-common.4GIL70qB.js';
|
|
9
9
|
|
|
10
10
|
function setupChaiConfig(config) {
|
|
11
11
|
Object.assign(chai.config, config);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, suite, test } from '@vitest/runner';
|
|
2
2
|
import { b as bench } from './benchmark.IlKmJkUU.js';
|
|
3
3
|
import { i as isFirstRun, a as runOnce } from './run-once.Olz_Zkd8.js';
|
|
4
|
-
import { c as createExpect, a as globalExpect, v as vi, b as vitest } from './vi.
|
|
4
|
+
import { c as createExpect, a as globalExpect, v as vi, b as vitest } from './vi.Bw2UL9c9.js';
|
|
5
5
|
import { g as getWorkerState } from './global.CkGT_TMy.js';
|
|
6
6
|
import * as chai from 'chai';
|
|
7
7
|
import { assert, should } from 'chai';
|