vitest 0.34.3 → 0.34.5
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 +28 -2
- package/dist/browser.js +11 -2
- package/dist/child.js +13 -8
- package/dist/{chunk-api-setup.3b016b1c.js → chunk-api-setup.d65b007d.js} +3 -3
- package/dist/{chunk-install-pkg.a036014e.js → chunk-install-pkg.e623b1bf.js} +3 -3
- package/dist/{chunk-integrations-globals.7f4b17bf.js → chunk-integrations-globals.5afac659.js} +2 -2
- package/dist/{chunk-node-git.c410fed8.js → chunk-node-git.36288174.js} +1 -1
- package/dist/cli-wrapper.js +1 -1
- package/dist/cli.js +4 -4
- package/dist/config.d.ts +1 -1
- package/dist/coverage.d.ts +1 -1
- package/dist/entry-vm.js +3 -3
- package/dist/entry.js +6 -3
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +3 -2
- package/dist/execute.d.ts +1 -1
- package/dist/execute.js +1 -1
- package/dist/index.d.ts +25 -2
- package/dist/index.js +3 -3
- package/dist/node.d.ts +2 -2
- package/dist/node.js +3 -3
- package/dist/{reporters-2ff87305.d.ts → reporters-5f784f42.d.ts} +23 -18
- package/dist/reporters.d.ts +1 -1
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +1 -1
- package/dist/{vendor-environments.8eb4d407.js → vendor-environments.b9b2f624.js} +26 -5
- package/dist/{vendor-execute.a63e187f.js → vendor-execute.07d1a420.js} +10 -3
- package/dist/{vendor-index.9378c9a4.js → vendor-index.3e351f42.js} +2 -0
- package/dist/{vendor-index.7178e7a2.js → vendor-index.7646b3af.js} +1 -1
- package/dist/{vendor-index.1f85e5f1.js → vendor-index.85fc950a.js} +2 -2
- package/dist/{vendor-node.5ce5f335.js → vendor-node.81dd929c.js} +123 -96
- package/dist/{vendor-vi.597d9e06.js → vendor-vi.6873a1c1.js} +149 -22
- package/dist/vm.js +11 -6
- package/dist/worker.js +13 -8
- package/package.json +8 -8
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { startTests } from '@vitest/runner';
|
|
2
|
-
import { R as ResolvedConfig,
|
|
2
|
+
import { R as ResolvedConfig, e as CoverageOptions, f as CoverageProvider, g as CoverageProviderModule } from './reporters-5f784f42.js';
|
|
3
|
+
import { VitestExecutor } from './execute.js';
|
|
3
4
|
import 'vite';
|
|
4
5
|
import 'vite-node';
|
|
5
6
|
import '@vitest/snapshot';
|
|
@@ -14,8 +15,33 @@ import 'node:worker_threads';
|
|
|
14
15
|
import 'rollup';
|
|
15
16
|
import 'node:fs';
|
|
16
17
|
import 'chai';
|
|
18
|
+
import 'node:vm';
|
|
19
|
+
|
|
20
|
+
type Formatter = (input: string | number | null | undefined) => string;
|
|
21
|
+
|
|
22
|
+
interface DiffOptions {
|
|
23
|
+
aAnnotation?: string;
|
|
24
|
+
aColor?: Formatter;
|
|
25
|
+
aIndicator?: string;
|
|
26
|
+
bAnnotation?: string;
|
|
27
|
+
bColor?: Formatter;
|
|
28
|
+
bIndicator?: string;
|
|
29
|
+
changeColor?: Formatter;
|
|
30
|
+
changeLineTrailingSpaceColor?: Formatter;
|
|
31
|
+
commonColor?: Formatter;
|
|
32
|
+
commonIndicator?: string;
|
|
33
|
+
commonLineTrailingSpaceColor?: Formatter;
|
|
34
|
+
contextLines?: number;
|
|
35
|
+
emptyFirstOrLastLinePlaceholder?: string;
|
|
36
|
+
expand?: boolean;
|
|
37
|
+
includeChangeCounts?: boolean;
|
|
38
|
+
omitAnnotationLines?: boolean;
|
|
39
|
+
patchColor?: Formatter;
|
|
40
|
+
compareKeys?: any;
|
|
41
|
+
}
|
|
17
42
|
|
|
18
43
|
declare function setupCommonEnv(config: ResolvedConfig): Promise<void>;
|
|
44
|
+
declare function loadDiffConfig(config: ResolvedConfig, executor: VitestExecutor): Promise<DiffOptions | undefined>;
|
|
19
45
|
|
|
20
46
|
interface Loader {
|
|
21
47
|
executeId: (id: string) => Promise<{
|
|
@@ -27,4 +53,4 @@ declare function startCoverageInsideWorker(options: CoverageOptions | undefined,
|
|
|
27
53
|
declare function takeCoverageInsideWorker(options: CoverageOptions | undefined, loader: Loader): Promise<unknown>;
|
|
28
54
|
declare function stopCoverageInsideWorker(options: CoverageOptions | undefined, loader: Loader): Promise<unknown>;
|
|
29
55
|
|
|
30
|
-
export { getCoverageProvider, setupCommonEnv, startCoverageInsideWorker, stopCoverageInsideWorker, takeCoverageInsideWorker };
|
|
56
|
+
export { getCoverageProvider, loadDiffConfig, setupCommonEnv, startCoverageInsideWorker, stopCoverageInsideWorker, takeCoverageInsideWorker };
|
package/dist/browser.js
CHANGED
|
@@ -13,11 +13,20 @@ async function setupCommonEnv(config) {
|
|
|
13
13
|
globalSetup = true;
|
|
14
14
|
setSafeTimers();
|
|
15
15
|
if (config.globals)
|
|
16
|
-
(await import('./chunk-integrations-globals.
|
|
16
|
+
(await import('./chunk-integrations-globals.5afac659.js')).registerApiGlobally();
|
|
17
17
|
}
|
|
18
18
|
function setupDefines(defines) {
|
|
19
19
|
for (const key in defines)
|
|
20
20
|
globalThis[key] = defines[key];
|
|
21
21
|
}
|
|
22
|
+
async function loadDiffConfig(config, executor) {
|
|
23
|
+
if (typeof config.diff !== "string")
|
|
24
|
+
return;
|
|
25
|
+
const diffModule = await executor.executeId(config.diff);
|
|
26
|
+
if (diffModule && typeof diffModule.default === "object" && diffModule.default != null)
|
|
27
|
+
return diffModule.default;
|
|
28
|
+
else
|
|
29
|
+
throw new Error(`invalid diff config file ${config.diff}. Must have a default export with config object`);
|
|
30
|
+
}
|
|
22
31
|
|
|
23
|
-
export { setupCommonEnv };
|
|
32
|
+
export { loadDiffConfig, setupCommonEnv };
|
package/dist/child.js
CHANGED
|
@@ -2,24 +2,24 @@ import { performance } from 'node:perf_hooks';
|
|
|
2
2
|
import v8 from 'node:v8';
|
|
3
3
|
import { c as createBirpc } from './vendor-index.b271ebe4.js';
|
|
4
4
|
import { parseRegexp } from '@vitest/utils';
|
|
5
|
-
import { l as loadEnvironment } from './vendor-environments.
|
|
6
|
-
import { s as startViteNode, m as moduleCache, a as mockMap } from './vendor-execute.
|
|
5
|
+
import { l as loadEnvironment } from './vendor-environments.b9b2f624.js';
|
|
6
|
+
import { s as startViteNode, m as moduleCache, a as mockMap } from './vendor-execute.07d1a420.js';
|
|
7
7
|
import { r as rpcDone, c as createSafeRpc } from './vendor-rpc.cbd8e972.js';
|
|
8
8
|
import { s as setupInspect } from './vendor-inspector.47fc8cbb.js';
|
|
9
|
-
import 'node:url';
|
|
10
9
|
import 'pathe';
|
|
11
10
|
import './vendor-index.0b5b3600.js';
|
|
12
11
|
import 'acorn';
|
|
13
12
|
import 'node:module';
|
|
14
13
|
import 'node:fs';
|
|
14
|
+
import 'node:url';
|
|
15
15
|
import 'node:assert';
|
|
16
16
|
import 'node:process';
|
|
17
17
|
import 'node:path';
|
|
18
18
|
import 'node:util';
|
|
19
|
+
import 'vite-node/client';
|
|
19
20
|
import 'node:console';
|
|
20
21
|
import 'local-pkg';
|
|
21
22
|
import 'node:vm';
|
|
22
|
-
import 'vite-node/client';
|
|
23
23
|
import 'vite-node/utils';
|
|
24
24
|
import '@vitest/utils/error';
|
|
25
25
|
import './vendor-paths.84fc7a99.js';
|
|
@@ -36,7 +36,7 @@ async function init(ctx) {
|
|
|
36
36
|
const onCancel = new Promise((resolve) => {
|
|
37
37
|
setCancel = resolve;
|
|
38
38
|
});
|
|
39
|
-
const rpc = createBirpc(
|
|
39
|
+
const rpc = createSafeRpc(createBirpc(
|
|
40
40
|
{
|
|
41
41
|
onCancel: setCancel
|
|
42
42
|
},
|
|
@@ -52,8 +52,13 @@ async function init(ctx) {
|
|
|
52
52
|
process.on("message", fn);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
);
|
|
56
|
-
const environment = await loadEnvironment(ctx.environment.name,
|
|
55
|
+
));
|
|
56
|
+
const environment = await loadEnvironment(ctx.environment.name, {
|
|
57
|
+
root: ctx.config.root,
|
|
58
|
+
fetchModule(id) {
|
|
59
|
+
return rpc.fetch(id, "ssr");
|
|
60
|
+
}
|
|
61
|
+
});
|
|
57
62
|
if (ctx.environment.transformMode)
|
|
58
63
|
environment.transformMode = ctx.environment.transformMode;
|
|
59
64
|
const state = {
|
|
@@ -67,7 +72,7 @@ async function init(ctx) {
|
|
|
67
72
|
environment: 0,
|
|
68
73
|
prepare: performance.now()
|
|
69
74
|
},
|
|
70
|
-
rpc
|
|
75
|
+
rpc
|
|
71
76
|
};
|
|
72
77
|
globalThis.__vitest_worker__ = state;
|
|
73
78
|
if (ctx.invalidates) {
|
|
@@ -4555,18 +4555,18 @@ function setup(vitestOrWorkspace, server) {
|
|
|
4555
4555
|
},
|
|
4556
4556
|
async saveTestFile(id, content) {
|
|
4557
4557
|
if (!ctx.state.filesMap.has(id) || !existsSync(id))
|
|
4558
|
-
|
|
4558
|
+
throw new Error(`Test file "${id}" was not registered, so it cannot be updated using the API.`);
|
|
4559
4559
|
return promises.writeFile(id, content, "utf-8");
|
|
4560
4560
|
},
|
|
4561
4561
|
async saveSnapshotFile(id, content) {
|
|
4562
4562
|
if (!ctx.snapshot.resolvedPaths.has(id))
|
|
4563
|
-
|
|
4563
|
+
throw new Error(`Snapshot file "${id}" does not exist.`);
|
|
4564
4564
|
await promises.mkdir(dirname(id), { recursive: true });
|
|
4565
4565
|
return promises.writeFile(id, content, "utf-8");
|
|
4566
4566
|
},
|
|
4567
4567
|
async removeSnapshotFile(id) {
|
|
4568
4568
|
if (!ctx.snapshot.resolvedPaths.has(id) || !existsSync(id))
|
|
4569
|
-
|
|
4569
|
+
throw new Error(`Snapshot file "${id}" does not exist.`);
|
|
4570
4570
|
return promises.unlink(id);
|
|
4571
4571
|
},
|
|
4572
4572
|
snapshotSaved(snapshot) {
|
|
@@ -3,8 +3,8 @@ import f from 'path';
|
|
|
3
3
|
import { g as getDefaultExportFromCjs } from './vendor-_commonjsHelpers.7d1333e8.js';
|
|
4
4
|
import require$$2 from 'util';
|
|
5
5
|
import require$$0$1 from 'child_process';
|
|
6
|
-
import { p as pathKeyExports, s as signalExitExports, m as mergeStream$1, g as getStreamExports, c as crossSpawnExports } from './vendor-index.
|
|
7
|
-
import { o as onetimeExports } from './vendor-node.
|
|
6
|
+
import { p as pathKeyExports, s as signalExitExports, m as mergeStream$1, g as getStreamExports, c as crossSpawnExports } from './vendor-index.85fc950a.js';
|
|
7
|
+
import { o as onetimeExports } from './vendor-node.81dd929c.js';
|
|
8
8
|
import require$$0 from 'os';
|
|
9
9
|
import 'node:buffer';
|
|
10
10
|
import 'node:path';
|
|
@@ -51,7 +51,7 @@ import 'acorn';
|
|
|
51
51
|
import 'acorn-walk';
|
|
52
52
|
import 'magic-string';
|
|
53
53
|
import 'strip-literal';
|
|
54
|
-
import './vendor-environments.
|
|
54
|
+
import './vendor-environments.b9b2f624.js';
|
|
55
55
|
import './vendor-index.0b5b3600.js';
|
|
56
56
|
import 'node:assert';
|
|
57
57
|
import 'node:console';
|
package/dist/{chunk-integrations-globals.7f4b17bf.js → chunk-integrations-globals.5afac659.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as globalApis } from './vendor-constants.538d9b49.js';
|
|
2
|
-
import { i as index } from './vendor-index.
|
|
2
|
+
import { i as index } from './vendor-index.7646b3af.js';
|
|
3
3
|
import '@vitest/runner';
|
|
4
|
-
import './vendor-vi.
|
|
4
|
+
import './vendor-vi.6873a1c1.js';
|
|
5
5
|
import '@vitest/runner/utils';
|
|
6
6
|
import '@vitest/utils';
|
|
7
7
|
import './vendor-index.29282562.js';
|
package/dist/cli-wrapper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url';
|
|
2
2
|
import c from 'picocolors';
|
|
3
|
-
import { e as execa } from './vendor-index.
|
|
3
|
+
import { e as execa } from './vendor-index.85fc950a.js';
|
|
4
4
|
import { E as EXIT_CODE_RESTART } from './vendor-constants.538d9b49.js';
|
|
5
5
|
import 'node:buffer';
|
|
6
6
|
import 'node:path';
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.81dd929c.js';
|
|
5
5
|
import './vendor-index.29282562.js';
|
|
6
6
|
import { d as divider } from './vendor-reporters.f6975b8d.js';
|
|
7
7
|
import { t as toArray } from './vendor-base.9c08bbd0.js';
|
|
@@ -34,7 +34,7 @@ import '@vitest/utils';
|
|
|
34
34
|
import 'local-pkg';
|
|
35
35
|
import 'std-env';
|
|
36
36
|
import 'node:crypto';
|
|
37
|
-
import './vendor-index.
|
|
37
|
+
import './vendor-index.85fc950a.js';
|
|
38
38
|
import 'node:buffer';
|
|
39
39
|
import 'child_process';
|
|
40
40
|
import 'assert';
|
|
@@ -48,7 +48,7 @@ import 'acorn-walk';
|
|
|
48
48
|
import '@vitest/runner/utils';
|
|
49
49
|
import 'magic-string';
|
|
50
50
|
import 'strip-literal';
|
|
51
|
-
import './vendor-environments.
|
|
51
|
+
import './vendor-environments.b9b2f624.js';
|
|
52
52
|
import './vendor-index.0b5b3600.js';
|
|
53
53
|
import 'node:module';
|
|
54
54
|
import 'node:assert';
|
|
@@ -60,7 +60,7 @@ import 'node:perf_hooks';
|
|
|
60
60
|
import './vendor-tasks.f9d75aed.js';
|
|
61
61
|
|
|
62
62
|
const cli = cac("vitest");
|
|
63
|
-
cli.version(version).option("-r, --root <path>", "Root path").option("-c, --config <path>", "Path to config file").option("-u, --update", "Update snapshot").option("-w, --watch", "Enable watch mode").option("-t, --testNamePattern <pattern>", "Run tests with full names matching the specified regexp pattern").option("--dir <path>", "Base directory to scan for the test files").option("--ui", "Enable UI").option("--open", "Open UI automatically (default: !process.env.CI))").option("--api [api]", "Serve API, available options: --api.port <port>, --api.host [host] and --api.strictPort").option("--threads", "Enabled threads (default: true)").option("--single-thread", "Run tests inside a single thread, requires --threads (default: false)").option("--experimental-vm-threads", "Run tests in a worker pool using VM isolation (default: false)").option("--experimental-vm-worker-memory-limit", "Set the maximum allowed memory for a worker. When reached, a new worker will be created instead").option("--silent", "Silent console output from tests").option("--hideSkippedTests", "Hide logs for skipped tests").option("--isolate", "Isolate environment for each test file (default: true)").option("--reporter <name>", "Specify reporters").option("--outputFile <filename/-s>", "Write test results to a file when supporter reporter is also specified, use cac's dot notation for individual outputs of multiple reporters").option("--coverage", "Enable coverage report").option("--run", "Disable watch mode").option("--mode <name>", "Override Vite mode (default: test)").option("--globals", "Inject apis globally").option("--dom", "Mock browser api with happy-dom").option("--browser [options]", "Run tests in the browser (default: false)").option("--environment <env>", "Specify runner environment, if not running in the browser (default: node)").option("--passWithNoTests", "Pass when no tests found").option("--logHeapUsage", "Show the size of heap for each test").option("--allowOnly", "Allow tests and suites that are marked as only (default: !process.env.CI)").option("--dangerouslyIgnoreUnhandledErrors", "Ignore any unhandled errors that occur").option("--shard <shard>", "Test suite shard to execute in a format of <index>/<count>").option("--changed [since]", "Run tests that are affected by the changed files (default: false)").option("--sequence <options>", "Define in what order to run tests (use --sequence.shuffle to run tests in random order, use --sequence.concurrent to run tests in parallel)").option("--segfaultRetry <times>", "Return tests on segment fault (default: 0)", { default: 0 }).option("--no-color", "Removes colors from the console output").option("--inspect", "Enable Node.js inspector").option("--inspect-brk", "Enable Node.js inspector with break").option("--test-timeout <time>", "Default timeout of a test in milliseconds (default: 5000)").option("--bail <number>", "Stop test execution when given number of tests have failed", { default: 0 }).option("--retry <times>", "Retry the test specific number of times if it fails", { default: 0 }).help();
|
|
63
|
+
cli.version(version).option("-r, --root <path>", "Root path").option("-c, --config <path>", "Path to config file").option("-u, --update", "Update snapshot").option("-w, --watch", "Enable watch mode").option("-t, --testNamePattern <pattern>", "Run tests with full names matching the specified regexp pattern").option("--dir <path>", "Base directory to scan for the test files").option("--ui", "Enable UI").option("--open", "Open UI automatically (default: !process.env.CI))").option("--api [api]", "Serve API, available options: --api.port <port>, --api.host [host] and --api.strictPort").option("--threads", "Enabled threads (default: true)").option("--single-thread", "Run tests inside a single thread, requires --threads (default: false)").option("--experimental-vm-threads", "Run tests in a worker pool using VM isolation (default: false)").option("--experimental-vm-worker-memory-limit", "Set the maximum allowed memory for a worker. When reached, a new worker will be created instead").option("--silent", "Silent console output from tests").option("--hideSkippedTests", "Hide logs for skipped tests").option("--isolate", "Isolate environment for each test file (default: true)").option("--reporter <name>", "Specify reporters").option("--outputFile <filename/-s>", "Write test results to a file when supporter reporter is also specified, use cac's dot notation for individual outputs of multiple reporters").option("--coverage", "Enable coverage report").option("--run", "Disable watch mode").option("--mode <name>", "Override Vite mode (default: test)").option("--globals", "Inject apis globally").option("--dom", "Mock browser api with happy-dom").option("--browser [options]", "Run tests in the browser (default: false)").option("--environment <env>", "Specify runner environment, if not running in the browser (default: node)").option("--passWithNoTests", "Pass when no tests found").option("--logHeapUsage", "Show the size of heap for each test").option("--allowOnly", "Allow tests and suites that are marked as only (default: !process.env.CI)").option("--dangerouslyIgnoreUnhandledErrors", "Ignore any unhandled errors that occur").option("--shard <shard>", "Test suite shard to execute in a format of <index>/<count>").option("--changed [since]", "Run tests that are affected by the changed files (default: false)").option("--sequence <options>", "Define in what order to run tests (use --sequence.shuffle to run tests in random order, use --sequence.concurrent to run tests in parallel)").option("--segfaultRetry <times>", "Return tests on segment fault (default: 0)", { default: 0 }).option("--no-color", "Removes colors from the console output").option("--inspect", "Enable Node.js inspector").option("--inspect-brk", "Enable Node.js inspector with break").option("--test-timeout <time>", "Default timeout of a test in milliseconds (default: 5000)").option("--bail <number>", "Stop test execution when given number of tests have failed", { default: 0 }).option("--retry <times>", "Retry the test specific number of times if it fails", { default: 0 }).option("--diff <path>", "Path to a diff config that will be used to generate diff interface").help();
|
|
64
64
|
cli.command("run [...filters]").action(run);
|
|
65
65
|
cli.command("related [...filters]").action(runRelated);
|
|
66
66
|
cli.command("watch [...filters]").action(watch);
|
package/dist/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserConfig as UserConfig$1, ConfigEnv } from 'vite';
|
|
2
2
|
export { ConfigEnv, UserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import {
|
|
3
|
+
import { a as ResolvedCoverageOptions, U as UserConfig, C as CoverageV8Options, P as ProjectConfig } from './reporters-5f784f42.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import 'vite-node';
|
|
6
6
|
import '@vitest/snapshot';
|
package/dist/coverage.d.ts
CHANGED
package/dist/entry-vm.js
CHANGED
|
@@ -3,10 +3,10 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { performance } from 'node:perf_hooks';
|
|
4
4
|
import { startTests } from '@vitest/runner';
|
|
5
5
|
import { setupColors, createColors } from '@vitest/utils';
|
|
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.3e351f42.js';
|
|
7
7
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './vendor-coverage.78040316.js';
|
|
8
8
|
import { g as getWorkerState } from './vendor-global.97e4527c.js';
|
|
9
|
-
import { i as index } from './vendor-index.
|
|
9
|
+
import { i as index } from './vendor-index.7646b3af.js';
|
|
10
10
|
import { setupCommonEnv } from './browser.js';
|
|
11
11
|
import 'chai';
|
|
12
12
|
import '@vitest/snapshot/environment';
|
|
@@ -14,7 +14,7 @@ import 'pathe';
|
|
|
14
14
|
import './vendor-paths.84fc7a99.js';
|
|
15
15
|
import 'node:url';
|
|
16
16
|
import './vendor-rpc.cbd8e972.js';
|
|
17
|
-
import './vendor-vi.
|
|
17
|
+
import './vendor-vi.6873a1c1.js';
|
|
18
18
|
import '@vitest/runner/utils';
|
|
19
19
|
import './vendor-index.29282562.js';
|
|
20
20
|
import 'std-env';
|
package/dist/entry.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { performance } from 'node:perf_hooks';
|
|
2
2
|
import { startTests } from '@vitest/runner';
|
|
3
3
|
import './vendor-index.29282562.js';
|
|
4
|
-
import { d as globalExpect, r as resetModules, v as vi } from './vendor-vi.
|
|
4
|
+
import { d as globalExpect, r as resetModules, v as vi } from './vendor-vi.6873a1c1.js';
|
|
5
5
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './vendor-coverage.78040316.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.3e351f42.js';
|
|
7
7
|
import { createRequire } from 'node:module';
|
|
8
8
|
import { isatty } from 'node:tty';
|
|
9
9
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
10
10
|
import { setupColors, createColors, getSafeTimers } from '@vitest/utils';
|
|
11
|
-
import { i as index } from './vendor-index.
|
|
11
|
+
import { i as index } from './vendor-index.7646b3af.js';
|
|
12
12
|
import { setupCommonEnv } from './browser.js';
|
|
13
13
|
import { g as getWorkerState } from './vendor-global.97e4527c.js';
|
|
14
14
|
import 'pathe';
|
|
@@ -50,6 +50,9 @@ async function setupGlobalEnv(config, { environment }) {
|
|
|
50
50
|
_require.extensions[".scss"] = () => ({});
|
|
51
51
|
_require.extensions[".sass"] = () => ({});
|
|
52
52
|
_require.extensions[".less"] = () => ({});
|
|
53
|
+
process.env.SSR = "";
|
|
54
|
+
} else {
|
|
55
|
+
process.env.SSR = "1";
|
|
53
56
|
}
|
|
54
57
|
installSourcemapsSupport({
|
|
55
58
|
getSourceMap: (source) => state.moduleCache.getSourceMap(source)
|
package/dist/environments.d.ts
CHANGED
package/dist/environments.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { e as builtinEnvironments, p as populateGlobal } from './vendor-environments.
|
|
2
|
-
import 'node:url';
|
|
1
|
+
export { e as builtinEnvironments, p as populateGlobal } from './vendor-environments.b9b2f624.js';
|
|
3
2
|
import 'pathe';
|
|
4
3
|
import './vendor-index.0b5b3600.js';
|
|
5
4
|
import 'acorn';
|
|
6
5
|
import 'node:module';
|
|
7
6
|
import 'node:fs';
|
|
7
|
+
import 'node:url';
|
|
8
8
|
import 'node:assert';
|
|
9
9
|
import 'node:process';
|
|
10
10
|
import 'node:path';
|
|
11
11
|
import 'node:v8';
|
|
12
12
|
import 'node:util';
|
|
13
|
+
import 'vite-node/client';
|
|
13
14
|
import 'node:console';
|
|
14
15
|
import 'local-pkg';
|
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 { ag as PendingSuiteMock, ah as MockFactory, Z as WorkerGlobalState, ai as MockMap, K as RuntimeRPC } from './reporters-5f784f42.js';
|
|
5
5
|
import 'vite';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import '@vitest/snapshot';
|
package/dist/execute.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Test, File, TaskResultPack, CancelReason } from '@vitest/runner';
|
|
2
2
|
export { DoneCallback, File, HookCleanupCallback, HookListener, OnTestFailedHandler, RunMode, RuntimeContext, SequenceHooks, SequenceSetupFiles, Suite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteHooks, Task, TaskBase, TaskMeta, TaskResult, TaskResultPack, TaskState, Test, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, suite, test } from '@vitest/runner';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { h as BenchmarkAPI, F as FakeTimerInstallOpts, M as MockFactoryWithHelper, i as RuntimeConfig, A as AfterSuiteRunMeta, j as UserConsoleLog, R as ResolvedConfig, k as ModuleGraphData, l as Reporter } from './reporters-5f784f42.js';
|
|
4
|
+
export { x as ApiConfig, a1 as ArgumentsType, a0 as Arrayable, _ as Awaitable, B as BaseCoverageOptions, af as BenchFunction, ad as Benchmark, ae as BenchmarkResult, ac as BenchmarkUserOptions, t as BuiltinEnvironment, w as CSSModuleScopeStrategy, o as CollectLineNumbers, p as CollectLines, a3 as Constructable, r as Context, Q as ContextRPC, N as ContextTestEnvironment, aa as CoverageIstanbulOptions, e as CoverageOptions, f as CoverageProvider, g as CoverageProviderModule, a9 as CoverageReporter, C as CoverageV8Options, ab as CustomProviderOptions, D as DepsOptimizationOptions, E as Environment, y as EnvironmentOptions, a5 as EnvironmentReturn, H as HappyDOMOptions, I as InlineConfig, J as JSDOMOptions, a4 as ModuleCache, a2 as MutableArray, $ as Nullable, a7 as OnServerRestartHandler, P as ProjectConfig, m as RawErrsMap, a8 as ReportContext, X as ResolveIdFunction, a as ResolvedCoverageOptions, O as ResolvedTestEnvironment, q as RootAndTarget, L as RunnerRPC, K as RuntimeRPC, z as TransformModePatterns, n as TscErrorInfo, G as TypecheckConfig, U as UserConfig, b as Vitest, u as VitestEnvironment, v as VitestPool, V as VitestRunMode, a6 as VmEnvironmentReturn, S as WorkerContext, Z as WorkerGlobalState, Y as WorkerRPC } from './reporters-5f784f42.js';
|
|
5
5
|
import { ExpectStatic } from '@vitest/expect';
|
|
6
6
|
export { Assertion, AsymmetricMatchersContaining, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
7
7
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, EnhancedSpy } from '@vitest/spy';
|
|
@@ -9,6 +9,7 @@ export { EnhancedSpy, Mock, MockContext, MockInstance, Mocked, MockedClass, Mock
|
|
|
9
9
|
export { SnapshotEnvironment } from '@vitest/snapshot/environment';
|
|
10
10
|
import { SnapshotResult } from '@vitest/snapshot';
|
|
11
11
|
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
12
|
+
export { DiffOptions } from '@vitest/utils/diff';
|
|
12
13
|
import { TransformResult } from 'vite';
|
|
13
14
|
import * as chai from 'chai';
|
|
14
15
|
export { chai };
|
|
@@ -207,7 +208,27 @@ declare function isFirstRun(): boolean;
|
|
|
207
208
|
declare function createExpect(test?: Test): ExpectStatic;
|
|
208
209
|
declare const globalExpect: ExpectStatic;
|
|
209
210
|
|
|
211
|
+
type WaitForCallback<T> = () => T | Promise<T>;
|
|
212
|
+
interface WaitForOptions {
|
|
213
|
+
/**
|
|
214
|
+
* @description Time in ms between each check callback
|
|
215
|
+
* @default 50ms
|
|
216
|
+
*/
|
|
217
|
+
interval?: number;
|
|
218
|
+
/**
|
|
219
|
+
* @description Time in ms after which the throw a timeout error
|
|
220
|
+
* @default 1000ms
|
|
221
|
+
*/
|
|
222
|
+
timeout?: number;
|
|
223
|
+
}
|
|
224
|
+
declare function waitFor<T>(callback: WaitForCallback<T>, options?: number | WaitForOptions): Promise<T>;
|
|
225
|
+
type WaitUntilCallback<T> = () => T | Promise<T>;
|
|
226
|
+
interface WaitUntilOptions extends Pick<WaitForOptions, 'interval' | 'timeout'> {
|
|
227
|
+
}
|
|
228
|
+
declare function waitUntil<T>(callback: WaitUntilCallback<T>, options?: number | WaitUntilOptions): Promise<T>;
|
|
229
|
+
|
|
210
230
|
interface VitestUtils {
|
|
231
|
+
isFakeTimers(): boolean;
|
|
211
232
|
useFakeTimers(config?: FakeTimerInstallOpts): this;
|
|
212
233
|
useRealTimers(): this;
|
|
213
234
|
runOnlyPendingTimers(): this;
|
|
@@ -226,6 +247,8 @@ interface VitestUtils {
|
|
|
226
247
|
clearAllTimers(): this;
|
|
227
248
|
spyOn: typeof spyOn;
|
|
228
249
|
fn: typeof fn;
|
|
250
|
+
waitFor: typeof waitFor;
|
|
251
|
+
waitUntil: typeof waitUntil;
|
|
229
252
|
/**
|
|
230
253
|
* Run the factory before imports are evaluated. You can return a value from the factory
|
|
231
254
|
* to reuse it inside your `vi.mock` factory and tests.
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, suite, test } from '@vitest/runner';
|
|
2
|
-
export { e as bench, c as createExpect, d as expect, v as vi, f as vitest } from './vendor-vi.
|
|
2
|
+
export { e as bench, c as createExpect, d as expect, v as vi, f as vitest } from './vendor-vi.6873a1c1.js';
|
|
3
3
|
export { i as isFirstRun, r as runOnce } from './vendor-run-once.3e5ef7d7.js';
|
|
4
|
-
import { d as dist } from './vendor-index.
|
|
5
|
-
export { b as assertType, g as getRunningMode, a as isWatchMode } from './vendor-index.
|
|
4
|
+
import { d as dist } from './vendor-index.7646b3af.js';
|
|
5
|
+
export { b as assertType, g as getRunningMode, a as isWatchMode } from './vendor-index.7646b3af.js';
|
|
6
6
|
import * as chai from 'chai';
|
|
7
7
|
export { chai };
|
|
8
8
|
export { assert, should } from 'chai';
|
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, b as Vitest, T as TestSequencer, W as WorkspaceSpec } from './reporters-5f784f42.js';
|
|
2
|
+
export { d as TestSequencerConstructor, c as VitestWorkspace, s as startVitest } from './reporters-5f784f42.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, V as VitestPlugin, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor-node.
|
|
1
|
+
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor-node.81dd929c.js';
|
|
2
2
|
import 'pathe';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import 'node:path';
|
|
@@ -39,7 +39,7 @@ import './vendor-tasks.f9d75aed.js';
|
|
|
39
39
|
import '@vitest/utils/source-map';
|
|
40
40
|
import 'node:module';
|
|
41
41
|
import 'node:crypto';
|
|
42
|
-
import './vendor-index.
|
|
42
|
+
import './vendor-index.85fc950a.js';
|
|
43
43
|
import 'node:buffer';
|
|
44
44
|
import 'child_process';
|
|
45
45
|
import 'assert';
|
|
@@ -51,7 +51,7 @@ import 'acorn';
|
|
|
51
51
|
import 'acorn-walk';
|
|
52
52
|
import 'magic-string';
|
|
53
53
|
import 'strip-literal';
|
|
54
|
-
import './vendor-environments.
|
|
54
|
+
import './vendor-environments.b9b2f624.js';
|
|
55
55
|
import './vendor-index.0b5b3600.js';
|
|
56
56
|
import 'node:assert';
|
|
57
57
|
import 'node:console';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { ViteDevServer, UserConfig as UserConfig$1, TransformResult as TransformResult$1,
|
|
2
|
+
import { ViteDevServer, UserConfig as UserConfig$1, TransformResult as TransformResult$1, 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, TaskCustom, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
5
5
|
import { RawSourceMap, FetchResult, ViteNodeResolveId, ModuleCacheMap, ViteNodeServerOptions } from 'vite-node';
|
|
@@ -447,10 +447,6 @@ declare class Typechecker {
|
|
|
447
447
|
getTestPacks(): TaskResultPack[];
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
interface InitializeServerOptions {
|
|
451
|
-
server?: ViteNodeServer;
|
|
452
|
-
runner?: ViteNodeRunner;
|
|
453
|
-
}
|
|
454
450
|
declare class WorkspaceProject {
|
|
455
451
|
path: string | number;
|
|
456
452
|
ctx: Vitest;
|
|
@@ -467,6 +463,7 @@ declare class WorkspaceProject {
|
|
|
467
463
|
constructor(path: string | number, ctx: Vitest);
|
|
468
464
|
getName(): string;
|
|
469
465
|
isCore(): boolean;
|
|
466
|
+
getModulesByFilepath(file: string): Set<vite.ModuleNode>;
|
|
470
467
|
getModuleById(id: string): vite.ModuleNode | undefined;
|
|
471
468
|
getSourceMapModuleById(id: string): rollup.SourceMap | null | undefined;
|
|
472
469
|
getBrowserSourceMapModuleById(id: string): rollup.SourceMap | null | undefined;
|
|
@@ -478,8 +475,9 @@ declare class WorkspaceProject {
|
|
|
478
475
|
isTargetFile(id: string, source?: string): Promise<boolean>;
|
|
479
476
|
isInSourceTestFile(code: string): boolean;
|
|
480
477
|
filterFiles(testFiles: string[], filters: string[] | undefined, dir: string): string[];
|
|
481
|
-
initBrowserServer(
|
|
482
|
-
|
|
478
|
+
initBrowserServer(configFile: string | undefined): Promise<void>;
|
|
479
|
+
static createCoreProject(ctx: Vitest): Promise<WorkspaceProject>;
|
|
480
|
+
setServer(options: UserConfig, server: ViteDevServer): Promise<void>;
|
|
483
481
|
report<T extends keyof Reporter>(name: T, ...args: ArgumentsType$1<Reporter[T]>): Promise<void>;
|
|
484
482
|
typecheck(filters?: string[]): Promise<void>;
|
|
485
483
|
isBrowserEnabled(): boolean | 0;
|
|
@@ -709,7 +707,7 @@ declare class VitestCache {
|
|
|
709
707
|
getFileStats(key: string): {
|
|
710
708
|
size: number;
|
|
711
709
|
} | undefined;
|
|
712
|
-
static resolveCacheDir(root: string, dir: string | undefined): string;
|
|
710
|
+
static resolveCacheDir(root: string, dir: string | undefined, projectName: string | undefined): string;
|
|
713
711
|
static clearCache(options: CliOptions): Promise<{
|
|
714
712
|
dir: string;
|
|
715
713
|
cleared: boolean;
|
|
@@ -747,7 +745,7 @@ declare class Vitest {
|
|
|
747
745
|
private _onSetServer;
|
|
748
746
|
private _onCancelListeners;
|
|
749
747
|
setServer(options: UserConfig, server: ViteDevServer, cliOptions: UserConfig): Promise<void>;
|
|
750
|
-
private
|
|
748
|
+
private createCoreProject;
|
|
751
749
|
getCoreWorkspaceProject(): WorkspaceProject | null;
|
|
752
750
|
getProjectByTaskId(taskId: string): WorkspaceProject;
|
|
753
751
|
private resolveWorkspace;
|
|
@@ -1357,6 +1355,12 @@ interface BaseCoverageOptions {
|
|
|
1357
1355
|
* @default false
|
|
1358
1356
|
*/
|
|
1359
1357
|
allowExternal?: boolean;
|
|
1358
|
+
/**
|
|
1359
|
+
* Shortcut for `{ lines: 100, functions: 100, branches: 100, statements: 100 }`
|
|
1360
|
+
*
|
|
1361
|
+
* @default false
|
|
1362
|
+
*/
|
|
1363
|
+
100?: boolean;
|
|
1360
1364
|
}
|
|
1361
1365
|
interface CoverageIstanbulOptions extends BaseCoverageOptions {
|
|
1362
1366
|
/**
|
|
@@ -1367,12 +1371,6 @@ interface CoverageIstanbulOptions extends BaseCoverageOptions {
|
|
|
1367
1371
|
ignoreClassMethods?: string[];
|
|
1368
1372
|
}
|
|
1369
1373
|
interface CoverageV8Options extends BaseCoverageOptions {
|
|
1370
|
-
/**
|
|
1371
|
-
* Shortcut for `--check-coverage --lines 100 --functions 100 --branches 100 --statements 100`
|
|
1372
|
-
*
|
|
1373
|
-
* @default false
|
|
1374
|
-
*/
|
|
1375
|
-
100?: boolean;
|
|
1376
1374
|
}
|
|
1377
1375
|
interface CustomProviderOptions extends Pick<BaseCoverageOptions, FieldsWithDefaultValues> {
|
|
1378
1376
|
/** Name of the module or path to a file to load the custom provider from */
|
|
@@ -1473,6 +1471,9 @@ interface HappyDOMOptions {
|
|
|
1473
1471
|
disableIframePageLoading?: boolean;
|
|
1474
1472
|
disableComputedStyleRendering?: boolean;
|
|
1475
1473
|
enableFileSystemHttpRequests?: boolean;
|
|
1474
|
+
navigator?: {
|
|
1475
|
+
userAgent?: string;
|
|
1476
|
+
};
|
|
1476
1477
|
device?: {
|
|
1477
1478
|
prefersColorScheme?: string;
|
|
1478
1479
|
mediaType?: string;
|
|
@@ -1533,7 +1534,7 @@ type BuiltinEnvironment = 'node' | 'jsdom' | 'happy-dom' | 'edge-runtime';
|
|
|
1533
1534
|
type VitestEnvironment = BuiltinEnvironment | (string & Record<never, never>);
|
|
1534
1535
|
type VitestPool = 'browser' | 'threads' | 'child_process' | 'experimentalVmThreads';
|
|
1535
1536
|
type CSSModuleScopeStrategy = 'stable' | 'scoped' | 'non-scoped';
|
|
1536
|
-
type ApiConfig = Pick<
|
|
1537
|
+
type ApiConfig = Pick<ServerOptions, 'port' | 'strictPort' | 'host' | 'middlewareMode'>;
|
|
1537
1538
|
|
|
1538
1539
|
interface EnvironmentOptions {
|
|
1539
1540
|
/**
|
|
@@ -1981,13 +1982,17 @@ interface InlineConfig {
|
|
|
1981
1982
|
*/
|
|
1982
1983
|
uiBase?: string;
|
|
1983
1984
|
/**
|
|
1984
|
-
* Determine the transform method for all modules
|
|
1985
|
+
* Determine the transform method for all modules imported inside a test that matches the glob pattern.
|
|
1985
1986
|
*/
|
|
1986
1987
|
testTransformMode?: TransformModePatterns;
|
|
1987
1988
|
/**
|
|
1988
1989
|
* Format options for snapshot testing.
|
|
1989
1990
|
*/
|
|
1990
1991
|
snapshotFormat?: PrettyFormatOptions;
|
|
1992
|
+
/**
|
|
1993
|
+
* Path to a module which has a default export of diff config.
|
|
1994
|
+
*/
|
|
1995
|
+
diff?: string;
|
|
1991
1996
|
/**
|
|
1992
1997
|
* Resolve custom snapshot path
|
|
1993
1998
|
*/
|
|
@@ -2290,4 +2295,4 @@ type Context = RootAndTarget & {
|
|
|
2290
2295
|
lastActivePath?: string;
|
|
2291
2296
|
};
|
|
2292
2297
|
|
|
2293
|
-
export {
|
|
2298
|
+
export { Nullable as $, AfterSuiteRunMeta as A, BaseCoverageOptions as B, CoverageV8Options as C, DepsOptimizationOptions as D, Environment as E, FakeTimerInstallOpts as F, TypecheckConfig as G, HappyDOMOptions as H, InlineConfig as I, JSDOMOptions as J, RuntimeRPC as K, RunnerRPC as L, MockFactoryWithHelper as M, ContextTestEnvironment as N, ResolvedTestEnvironment as O, ProjectConfig as P, ContextRPC as Q, ResolvedConfig as R, WorkerContext as S, TestSequencer as T, UserConfig as U, VitestRunMode as V, WorkspaceSpec as W, ResolveIdFunction as X, WorkerRPC as Y, WorkerGlobalState as Z, Awaitable as _, ResolvedCoverageOptions as a, Arrayable as a0, ArgumentsType$1 as a1, MutableArray as a2, Constructable as a3, ModuleCache as a4, EnvironmentReturn as a5, VmEnvironmentReturn as a6, OnServerRestartHandler as a7, ReportContext as a8, CoverageReporter as a9, CoverageIstanbulOptions as aa, CustomProviderOptions as ab, BenchmarkUserOptions as ac, Benchmark as ad, BenchmarkResult as ae, BenchFunction as af, PendingSuiteMock as ag, MockFactory as ah, MockMap as ai, DefaultReporter as aj, BasicReporter as ak, DotReporter as al, JsonReporter$1 as am, VerboseReporter as an, TapReporter as ao, JUnitReporter as ap, TapFlatReporter as aq, HangingProcessReporter as ar, BaseReporter as as, ReportersMap as at, BuiltinReporters as au, BenchmarkReportsMap as av, BenchmarkBuiltinReporters as aw, Vitest as b, WorkspaceProject as c, TestSequencerConstructor as d, CoverageOptions as e, CoverageProvider as f, CoverageProviderModule as g, BenchmarkAPI as h, RuntimeConfig as i, UserConsoleLog as j, ModuleGraphData as k, Reporter as l, RawErrsMap as m, TscErrorInfo as n, CollectLineNumbers as o, CollectLines as p, RootAndTarget as q, Context as r, startVitest as s, BuiltinEnvironment as t, VitestEnvironment as u, VitestPool as v, CSSModuleScopeStrategy as w, ApiConfig as x, EnvironmentOptions as y, TransformModePatterns as z };
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { as as BaseReporter, ak as BasicReporter, aw as BenchmarkBuiltinReporters, av as BenchmarkReportsMap, au as BuiltinReporters, aj as DefaultReporter, al as DotReporter, ar as HangingProcessReporter, ap as JUnitReporter, am as JsonReporter,
|
|
1
|
+
export { as as BaseReporter, ak as BasicReporter, aw as BenchmarkBuiltinReporters, av as BenchmarkReportsMap, au as BuiltinReporters, aj as DefaultReporter, al as DotReporter, ar as HangingProcessReporter, ap as JUnitReporter, am as JsonReporter, l as Reporter, at as ReportersMap, aq as TapFlatReporter, ao as TapReporter, an as VerboseReporter } from './reporters-5f784f42.js';
|
|
2
2
|
import 'vite';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite-node';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VitestRunner, VitestRunnerImportSource, Suite, Test, CancelReason, TestContext } from '@vitest/runner';
|
|
2
|
-
import { R as ResolvedConfig } from './reporters-
|
|
2
|
+
import { R as ResolvedConfig } from './reporters-5f784f42.js';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import 'vite-node';
|
|
5
5
|
import '@vitest/snapshot';
|
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, a as getBenchOptions, b as getBenchFn } from './vendor-vi.
|
|
2
|
+
import { g as getSnapshotClient, c as createExpect, v as vi, a as getBenchOptions, b as getBenchFn } from './vendor-vi.6873a1c1.js';
|
|
3
3
|
import './vendor-index.29282562.js';
|
|
4
4
|
import { a as rpc } from './vendor-rpc.cbd8e972.js';
|
|
5
5
|
import { g as getFullName } from './vendor-tasks.f9d75aed.js';
|