vitest 4.1.12 → 5.1.0

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.
Files changed (121) hide show
  1. package/LICENSE.md +192 -10
  2. package/browser/context.d.ts +7 -1
  3. package/browser/context.js +5 -5
  4. package/config.d.ts +0 -2
  5. package/dist/browser.d.ts +52 -21
  6. package/dist/browser.js +12 -13
  7. package/dist/chunks/{acorn.B2iPLyUM.js → acorn.C1kjbUFw.js} +30 -30
  8. package/dist/chunks/{base.B6Opl8PE.js → base.Cof-UHJf.js} +81 -52
  9. package/dist/chunks/{browser.d.BcoexmFG.d.ts → browser.d.C7tWgUvw.d.ts} +17 -14
  10. package/dist/chunks/{cac.DzDtg8hz.js → cac.BYbt0aJp.js} +143 -87
  11. package/dist/chunks/{cli-api.B0Pz1_R7.js → cli-api.COfZo8lK.js} +7160 -7189
  12. package/dist/chunks/config.d.B3YV4t0O.d.ts +3873 -0
  13. package/dist/chunks/{console.3WNpx0tS.js → console.CQZ877Hi.js} +69 -63
  14. package/dist/chunks/{constants.CPYnjOGj.js → constants.DLYM6cZY.js} +2 -2
  15. package/dist/chunks/coverage.9iqXE2gN.js +26 -0
  16. package/dist/chunks/{coverage.CTzCuANN.js → coverage.jGCktcGP.js} +7 -2
  17. package/dist/chunks/{creator.DgVhQm5q.js → creator.DHWmytIK.js} +65 -28
  18. package/dist/chunks/{defaults.9aQKnqFk.js → defaults.B1FCaFfh.js} +16 -9
  19. package/dist/chunks/display.BlTmubjj.js +194 -0
  20. package/dist/chunks/doctor.B-oPbwps.js +465 -0
  21. package/dist/chunks/{env.D4Lgay0q.js → env.BKKtU2WC.js} +2 -1
  22. package/dist/chunks/{environment.d.CrsxCzP1.d.ts → environment.d.BFQtFKdZ.d.ts} +9 -1
  23. package/dist/chunks/globals.ZKtKSkEf.js +29 -0
  24. package/dist/chunks/index.Bi0NXYPf.js +1708 -0
  25. package/dist/chunks/{index.CMESou6r.js → index.BoyTG_B7.js} +82 -81
  26. package/dist/chunks/index.CZzC1gGg.js +8501 -0
  27. package/dist/chunks/index.D0heQG4v.js +1318 -0
  28. package/dist/chunks/index.Di8au7q4.js +15665 -0
  29. package/dist/chunks/{index.Chj8NDwU.js → index.DmDMHCg8.js} +6 -12
  30. package/dist/chunks/{index.DXx9Dtk7.js → index.w_oBZ9N8.js} +25 -12
  31. package/dist/chunks/{init-forks.H5ZuobOQ.js → init-forks.BaDXQSD8.js} +7 -10
  32. package/dist/chunks/{init-threads.6kl1khcL.js → init-threads.ZX_Vov0z.js} +1 -1
  33. package/dist/chunks/{init.k9zZ9sLh.js → init.CO4AB7HZ.js} +113 -38
  34. package/dist/chunks/module-dependencies._2Eei3FO.js +71 -0
  35. package/dist/chunks/{native.DPzPHdi5.js → native.upB-V0CK.js} +50 -37
  36. package/dist/chunks/{nativeModuleMocker.BkNfQMkH.js → nativeModuleMocker.Dh5azSB4.js} +48 -19
  37. package/dist/chunks/{index.BCY_7LL2.js → nativeModuleRunner.9xPIMzi7.js} +110 -42
  38. package/dist/chunks/node.B9mkVmLH.js +47 -0
  39. package/dist/chunks/offset.Dy-5Fdfn.js +24 -0
  40. package/dist/chunks/pathe.M-eThtNZ.zq3TM4NT.js +492 -0
  41. package/dist/chunks/{reporters.d.DtoKVV2s.d.ts → plugin.d.LRFSN46m.d.ts} +2573 -1453
  42. package/dist/chunks/plugins.DPQHVT0p.js +37 -0
  43. package/dist/chunks/rawSnapshot.DqSiqIEx.js +356 -0
  44. package/dist/chunks/resolver.BzpmeQeT.js +48 -0
  45. package/dist/chunks/rpc.Uhkwr2NM.js +93 -0
  46. package/dist/chunks/rpc.d.3FOhdFx8.d.ts +75 -0
  47. package/dist/chunks/run.CjdgFZiW.js +4231 -0
  48. package/dist/chunks/setup-common.CqAQCXzx.js +36 -0
  49. package/dist/chunks/source-map.DakdQc29.js +1788 -0
  50. package/dist/chunks/source-map.d.BkG8YK_3.d.ts +89 -0
  51. package/dist/chunks/spy.DDMXghXv.js +509 -0
  52. package/dist/chunks/task-utils.d.D-gFPNFi.d.ts +144 -0
  53. package/dist/chunks/tinyrainbow.Do8I1XRG.js +88 -0
  54. package/dist/chunks/{utils.BS4fH3nR.js → utils.BBk_icFG.js} +50 -52
  55. package/dist/chunks/{utils.BX5Fg8C4.js → utils.DYj33du9.js} +1 -17
  56. package/dist/chunks/vm.b4MbCAJQ.js +1329 -0
  57. package/dist/chunks/{worker.d.ZpHpO4yb.d.ts → worker.d.CyJRpyfZ.d.ts} +34 -19
  58. package/dist/cli.js +5 -6
  59. package/dist/config.cjs +9 -6
  60. package/dist/config.d.ts +27 -25
  61. package/dist/config.js +3 -3
  62. package/dist/index.d.ts +471 -38
  63. package/dist/index.js +18 -19
  64. package/dist/module-evaluator.d.ts +64 -5
  65. package/dist/module-evaluator.js +122 -62
  66. package/dist/node.d.ts +355 -87
  67. package/dist/node.js +49 -73
  68. package/dist/runtime.d.ts +43 -6
  69. package/dist/runtime.js +7 -9
  70. package/dist/spy.js +1 -1
  71. package/dist/task-utils.js +290 -0
  72. package/dist/{chunks/traces.DT5aQ62U.js → traces.js} +3 -2
  73. package/dist/worker.d.ts +8 -10
  74. package/dist/worker.js +33 -43
  75. package/dist/workers/forks.js +30 -40
  76. package/dist/workers/runVmTests.js +66 -43
  77. package/dist/workers/threads.js +30 -40
  78. package/dist/workers/vmForks.js +19 -20
  79. package/dist/workers/vmThreads.js +19 -20
  80. package/globals.d.ts +19 -19
  81. package/index.cjs +3 -3
  82. package/optional-runtime-types.d.ts +1 -1
  83. package/optional-types.d.ts +1 -1
  84. package/package.json +59 -74
  85. package/suppress-warnings.cjs +1 -1
  86. package/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -6
  87. package/dist/chunks/benchmark.CX_oY03V.js +0 -40
  88. package/dist/chunks/benchmark.d.DAaHLpsq.d.ts +0 -24
  89. package/dist/chunks/config.d.A1h_Y6Jt.d.ts +0 -232
  90. package/dist/chunks/coverage.DM_a_rWm.js +0 -1087
  91. package/dist/chunks/coverage.d.BZtK59WP.d.ts +0 -37
  92. package/dist/chunks/evaluatedModules.Dg1zASAC.js +0 -17
  93. package/dist/chunks/global.d.DVsSRdQ5.d.ts +0 -100
  94. package/dist/chunks/globals.Dj1TGiMC.js +0 -31
  95. package/dist/chunks/index.DC7d2Pf8.js +0 -729
  96. package/dist/chunks/index.DdgEv5B1.js +0 -42
  97. package/dist/chunks/index.UpGiHP7g.js +0 -4255
  98. package/dist/chunks/index.og1WyBLx.js +0 -6358
  99. package/dist/chunks/nativeModuleRunner.BIakptoF.js +0 -36
  100. package/dist/chunks/node.COQbm6gK.js +0 -14
  101. package/dist/chunks/plugin.d.DwFIiJ7i.d.ts +0 -38
  102. package/dist/chunks/rpc.MzXet3jl.js +0 -144
  103. package/dist/chunks/rpc.d.B_8sPU0w.d.ts +0 -30
  104. package/dist/chunks/setup-common.DYx3LtFI.js +0 -60
  105. package/dist/chunks/startVitestModuleRunner.DB-7oCpn.js +0 -740
  106. package/dist/chunks/suite.d.udJtyAgw.d.ts +0 -10
  107. package/dist/chunks/test.DNmyFkvJ.js +0 -4430
  108. package/dist/chunks/traces.d.D2T_R8rx.d.ts +0 -60
  109. package/dist/chunks/vm.CXMd5FHa.js +0 -785
  110. package/dist/coverage.d.ts +0 -123
  111. package/dist/coverage.js +0 -27
  112. package/dist/environments.d.ts +0 -22
  113. package/dist/environments.js +0 -5
  114. package/dist/reporters.d.ts +0 -27
  115. package/dist/reporters.js +0 -26
  116. package/dist/runners.d.ts +0 -70
  117. package/dist/runners.js +0 -19
  118. package/dist/snapshot.d.ts +0 -9
  119. package/dist/snapshot.js +0 -6
  120. package/dist/suite.d.ts +0 -5
  121. package/dist/suite.js +0 -8
@@ -1,123 +0,0 @@
1
- import { V as Vitest, av as ResolvedCoverageOptions, a$ as CoverageMap, ao as ReportContext, T as TestProject } from './chunks/reporters.d.DtoKVV2s.js';
2
- import { TransformResult } from 'vite';
3
- import { a as AfterSuiteRunMeta } from './chunks/traces.d.D2T_R8rx.js';
4
- import '@vitest/runner';
5
- import '@vitest/utils';
6
- import 'node:stream';
7
- import './chunks/config.d.A1h_Y6Jt.js';
8
- import '@vitest/pretty-format';
9
- import '@vitest/snapshot';
10
- import '@vitest/utils/diff';
11
- import './chunks/browser.d.BcoexmFG.js';
12
- import './chunks/worker.d.ZpHpO4yb.js';
13
- import 'vite/module-runner';
14
- import './chunks/environment.d.CrsxCzP1.js';
15
- import './chunks/rpc.d.B_8sPU0w.js';
16
- import '@vitest/expect';
17
- import 'vitest/optional-types.js';
18
- import './chunks/benchmark.d.DAaHLpsq.js';
19
- import '@vitest/runner/utils';
20
- import 'tinybench';
21
- import '@vitest/mocker';
22
- import '@vitest/utils/source-map';
23
- import 'vitest/browser';
24
- import './chunks/coverage.d.BZtK59WP.js';
25
- import '@vitest/snapshot/manager';
26
- import 'node:console';
27
- import 'node:fs';
28
-
29
- type Threshold = "lines" | "functions" | "statements" | "branches";
30
- interface ResolvedThreshold {
31
- coverageMap: CoverageMap;
32
- name: string;
33
- thresholds: Partial<Record<Threshold, number | undefined>>;
34
- }
35
- /**
36
- * Holds info about raw coverage results that are stored on file system:
37
- *
38
- * ```json
39
- * "project-a": {
40
- * "web": {
41
- * "tests/math.test.ts": "coverage-1.json",
42
- * "tests/utils.test.ts": "coverage-2.json",
43
- * // ^^^^^^^^^^^^^^^ Raw coverage on file system
44
- * },
45
- * "ssr": { ... },
46
- * "browser": { ... },
47
- * },
48
- * "project-b": ...
49
- * ```
50
- */
51
- type CoverageFiles = Map<NonNullable<AfterSuiteRunMeta["projectName"]> | symbol, Record<AfterSuiteRunMeta["environment"], {
52
- [TestFilenames: string]: string;
53
- }>>;
54
- declare class BaseCoverageProvider {
55
- ctx: Vitest;
56
- readonly name: "v8" | "istanbul";
57
- version: string;
58
- options: ResolvedCoverageOptions;
59
- globCache: Map<string, boolean>;
60
- autoUpdateMarker: string;
61
- coverageFiles: CoverageFiles;
62
- pendingPromises: Promise<void>[];
63
- coverageFilesDirectory: string;
64
- roots: string[];
65
- changedFiles?: string[];
66
- _initialize(ctx: Vitest): void;
67
- /**
68
- * Check if file matches `coverage.include` but not `coverage.exclude`
69
- */
70
- isIncluded(_filename: string, root?: string): boolean;
71
- private getUntestedFilesByRoot;
72
- getUntestedFiles(testedFiles: string[]): Promise<string[]>;
73
- createCoverageMap(): CoverageMap;
74
- generateReports(_: CoverageMap, __: boolean | undefined): Promise<void>;
75
- parseConfigModule(_: string): Promise<{
76
- generate: () => {
77
- code: string;
78
- };
79
- }>;
80
- resolveOptions(): ResolvedCoverageOptions;
81
- clean(clean?: boolean): Promise<void>;
82
- private normalizeCoverageFileError;
83
- onAfterSuiteRun({ coverage, environment, projectName, testFiles }: AfterSuiteRunMeta): void;
84
- readCoverageFiles<CoverageType>({ onFileRead, onFinished, onDebug }: {
85
- /** Callback invoked with a single coverage result */
86
- onFileRead: (data: CoverageType) => void;
87
- /** Callback invoked once all results of a project for specific transform mode are read */
88
- onFinished: (project: Vitest["projects"][number], environment: string) => Promise<void>;
89
- onDebug: ((...logs: any[]) => void) & {
90
- enabled: boolean;
91
- };
92
- }): Promise<void>;
93
- cleanAfterRun(): Promise<void>;
94
- onTestRunStart(): Promise<void>;
95
- onTestFailure(): Promise<void>;
96
- reportCoverage(coverageMap: unknown, { allTestsRun }: ReportContext): Promise<void>;
97
- reportThresholds(coverageMap: CoverageMap, allTestsRun: boolean | undefined): Promise<void>;
98
- /**
99
- * Constructs collected coverage and users' threshold options into separate sets
100
- * where each threshold set holds their own coverage maps. Threshold set is either
101
- * for specific files defined by glob pattern or global for all other files.
102
- */
103
- private resolveThresholds;
104
- /**
105
- * Check collected coverage against configured thresholds. Sets exit code to 1 when thresholds not reached.
106
- */
107
- private checkThresholds;
108
- /**
109
- * Check if current coverage is above configured thresholds and bump the thresholds if needed
110
- */
111
- updateThresholds({ thresholds: allThresholds, onUpdate, configurationFile }: {
112
- thresholds: ResolvedThreshold[];
113
- configurationFile: unknown;
114
- onUpdate: () => void;
115
- }): Promise<void>;
116
- mergeReports(coverageMaps: unknown[]): Promise<void>;
117
- hasTerminalReporter(reporters: ResolvedCoverageOptions["reporter"]): boolean;
118
- toSlices<T>(array: T[], size: number): T[][];
119
- transformFile(url: string, project: TestProject, viteEnvironment: string): Promise<TransformResult | null | undefined>;
120
- createUncoveredFileTransformer(ctx: Vitest): (filename: string) => Promise<TransformResult | null | undefined>;
121
- }
122
-
123
- export { BaseCoverageProvider };
package/dist/coverage.js DELETED
@@ -1,27 +0,0 @@
1
- export { B as BaseCoverageProvider } from './chunks/coverage.DM_a_rWm.js';
2
- import 'node:fs';
3
- import 'node:module';
4
- import 'node:path';
5
- import 'node:url';
6
- import '@vitest/utils/helpers';
7
- import 'pathe';
8
- import 'picomatch';
9
- import 'tinyglobby';
10
- import 'tinyrainbow';
11
- import './chunks/defaults.9aQKnqFk.js';
12
- import 'node:os';
13
- import './chunks/env.D4Lgay0q.js';
14
- import 'std-env';
15
- import 'node:crypto';
16
- import './chunks/index.BCY_7LL2.js';
17
- import 'node:process';
18
- import 'node:fs/promises';
19
- import 'node:assert';
20
- import 'node:v8';
21
- import 'node:util';
22
- import 'vite';
23
- import './chunks/constants.CPYnjOGj.js';
24
- import './chunks/utils.BS4fH3nR.js';
25
- import './chunks/coverage.CTzCuANN.js';
26
-
27
- console.warn("Importing from \"vitest/coverage\" is deprecated since Vitest 4.1. Please use \"vitest/node\" instead.");
@@ -1,22 +0,0 @@
1
- import { E as Environment } from './chunks/environment.d.CrsxCzP1.js';
2
- export { a as EnvironmentReturn, V as VmEnvironmentReturn } from './chunks/environment.d.CrsxCzP1.js';
3
- import '@vitest/utils';
4
-
5
- declare const environments: {
6
- "node": Environment;
7
- "jsdom": Environment;
8
- "happy-dom": Environment;
9
- "edge-runtime": Environment;
10
- };
11
-
12
- interface PopulateOptions {
13
- bindFunctions?: boolean;
14
- additionalKeys?: string[];
15
- }
16
- declare function populateGlobal(global: any, win: any, options?: PopulateOptions): {
17
- keys: Set<string>;
18
- skipKeys: string[];
19
- originals: Map<string | symbol, any>;
20
- };
21
-
22
- export { Environment, environments as builtinEnvironments, populateGlobal };
@@ -1,5 +0,0 @@
1
- export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.DC7d2Pf8.js';
2
- import 'node:url';
3
- import 'node:console';
4
-
5
- console.warn("Importing from \"vitest/environments\" is deprecated since Vitest 4.1. Please use \"vitest/runtime\" instead.");
@@ -1,27 +0,0 @@
1
- export { M as AgentReporter, l as BaseReporter, m as BenchmarkBuiltinReporters, n as BenchmarkReporter, o as BenchmarkReportsMap, K as BuiltinReporterOptions, N as BuiltinReporters, a0 as DefaultReporter, a2 as DotReporter, a4 as GithubActionsReporter, a6 as HangingProcessReporter, a9 as JUnitReporter, aa as JsonAssertionResult, ac as JsonReporter, ad as JsonTestResult, ae as JsonTestResults, M as MinimalReporter, ap as ReportedHookContext, aq as Reporter, ar as ReportersMap, ay as TapFlatReporter, az as TapReporter, aK as TestRunEndReason, aU as VerboseBenchmarkReporter, aV as VerboseReporter } from './chunks/reporters.d.DtoKVV2s.js';
2
- import '@vitest/runner';
3
- import '@vitest/utils';
4
- import './chunks/traces.d.D2T_R8rx.js';
5
- import 'node:stream';
6
- import 'vite';
7
- import './chunks/config.d.A1h_Y6Jt.js';
8
- import '@vitest/pretty-format';
9
- import '@vitest/snapshot';
10
- import '@vitest/utils/diff';
11
- import './chunks/browser.d.BcoexmFG.js';
12
- import './chunks/worker.d.ZpHpO4yb.js';
13
- import 'vite/module-runner';
14
- import './chunks/environment.d.CrsxCzP1.js';
15
- import './chunks/rpc.d.B_8sPU0w.js';
16
- import '@vitest/expect';
17
- import 'vitest/optional-types.js';
18
- import './chunks/benchmark.d.DAaHLpsq.js';
19
- import '@vitest/runner/utils';
20
- import 'tinybench';
21
- import '@vitest/mocker';
22
- import '@vitest/utils/source-map';
23
- import 'vitest/browser';
24
- import './chunks/coverage.d.BZtK59WP.js';
25
- import '@vitest/snapshot/manager';
26
- import 'node:console';
27
- import 'node:fs';
package/dist/reporters.js DELETED
@@ -1,26 +0,0 @@
1
- export { M as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, M as MinimalReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.UpGiHP7g.js';
2
- import 'node:fs';
3
- import '@vitest/runner/utils';
4
- import 'pathe';
5
- import 'tinyrainbow';
6
- import './chunks/utils.BS4fH3nR.js';
7
- import 'node:util';
8
- import '@vitest/utils/helpers';
9
- import 'node:fs/promises';
10
- import 'node:perf_hooks';
11
- import '@vitest/utils/source-map';
12
- import './chunks/env.D4Lgay0q.js';
13
- import 'std-env';
14
- import 'node:console';
15
- import 'node:stream';
16
- import '@vitest/utils/display';
17
- import 'node:os';
18
- import 'tinyexec';
19
- import './path.js';
20
- import 'node:path';
21
- import 'node:url';
22
- import 'vite';
23
- import '@vitest/utils/offset';
24
- import 'node:module';
25
-
26
- console.warn("Importing from \"vitest/reporters\" is deprecated since Vitest 4.1. Please use \"vitest/node\" instead.");
package/dist/runners.d.ts DELETED
@@ -1,70 +0,0 @@
1
- import * as tinybench from 'tinybench';
2
- import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, TestContext, ImportDuration, createTaskCollector, getCurrentSuite, getCurrentTest, getHooks, getFn } from '@vitest/runner';
3
- export { VitestRunner } from '@vitest/runner';
4
- import { S as SerializedConfig } from './chunks/config.d.A1h_Y6Jt.js';
5
- import { T as Traces } from './chunks/traces.d.D2T_R8rx.js';
6
- import { createChainable, matchesTags } from '@vitest/runner/utils';
7
- import { g as getBenchFn, a as getBenchOptions } from './chunks/suite.d.udJtyAgw.js';
8
- import '@vitest/pretty-format';
9
- import '@vitest/snapshot';
10
- import '@vitest/utils/diff';
11
- import './chunks/benchmark.d.DAaHLpsq.js';
12
-
13
- declare class NodeBenchmarkRunner implements VitestRunner {
14
- config: SerializedConfig;
15
- private moduleRunner;
16
- constructor(config: SerializedConfig);
17
- importTinybench(): Promise<typeof tinybench>;
18
- importFile(filepath: string, source: VitestRunnerImportSource): unknown;
19
- runSuite(suite: Suite): Promise<void>;
20
- runTask(): Promise<void>;
21
- }
22
-
23
- declare class TestRunner implements VitestRunner {
24
- config: SerializedConfig;
25
- private snapshotClient;
26
- private workerState;
27
- private moduleRunner;
28
- private cancelRun;
29
- private assertionsErrors;
30
- pool: string;
31
- private _otel;
32
- viteEnvironment: string;
33
- private viteModuleRunner;
34
- constructor(config: SerializedConfig);
35
- importFile(filepath: string, source: VitestRunnerImportSource): unknown;
36
- onCollectStart(file: File): void;
37
- onCleanupWorkerContext(listener: () => unknown): void;
38
- onAfterRunFiles(): void;
39
- onAfterRunSuite(suite: Suite): Promise<void>;
40
- onAfterRunTask(test: Task): void;
41
- cancel(_reason: CancelReason): void;
42
- injectValue(key: string): any;
43
- onBeforeRunTask(test: Task): Promise<void>;
44
- onBeforeRunSuite(suite: Suite): Promise<void>;
45
- onBeforeTryTask(test: Task): void;
46
- onAfterTryTask(test: Test): void;
47
- extendTaskContext(context: TestContext): TestContext;
48
- getImportDurations(): Record<string, ImportDuration>;
49
- trace: <T>(name: string, attributes: Record<string, any> | (() => T), cb?: () => T) => T;
50
- __setTraces(traces: Traces): void;
51
- static createTaskCollector: typeof createTaskCollector;
52
- static getCurrentSuite: typeof getCurrentSuite;
53
- static getCurrentTest: typeof getCurrentTest;
54
- static createChainable: typeof createChainable;
55
- static getSuiteHooks: typeof getHooks;
56
- static getTestFn: typeof getFn;
57
- static setSuiteHooks: typeof getHooks;
58
- static setTestFn: typeof getFn;
59
- static matchesTags: typeof matchesTags;
60
- /**
61
- * @deprecated
62
- */
63
- static getBenchFn: typeof getBenchFn;
64
- /**
65
- * @deprecated
66
- */
67
- static getBenchOptions: typeof getBenchOptions;
68
- }
69
-
70
- export { NodeBenchmarkRunner, TestRunner as VitestTestRunner };
package/dist/runners.js DELETED
@@ -1,19 +0,0 @@
1
- export { N as NodeBenchmarkRunner, T as VitestTestRunner } from './chunks/test.DNmyFkvJ.js';
2
- import '@vitest/runner';
3
- import '@vitest/utils/helpers';
4
- import '@vitest/utils/timers';
5
- import './chunks/benchmark.CX_oY03V.js';
6
- import '@vitest/runner/utils';
7
- import './chunks/utils.BX5Fg8C4.js';
8
- import '@vitest/expect';
9
- import '@vitest/utils/error';
10
- import 'pathe';
11
- import '@vitest/spy';
12
- import '@vitest/utils/offset';
13
- import '@vitest/utils/source-map';
14
- import './chunks/_commonjsHelpers.D26ty3Ew.js';
15
- import './chunks/rpc.MzXet3jl.js';
16
- import './chunks/index.Chj8NDwU.js';
17
- import '@vitest/snapshot';
18
-
19
- console.warn("Importing from \"vitest/runners\" is deprecated since Vitest 4.1. Please use \"vitest\" instead.");
@@ -1,9 +0,0 @@
1
- import { NodeSnapshotEnvironment } from '@vitest/snapshot/environment';
2
- export { SnapshotEnvironment } from '@vitest/snapshot/environment';
3
-
4
- declare class VitestNodeSnapshotEnvironment extends NodeSnapshotEnvironment {
5
- getHeader(): string;
6
- resolvePath(filepath: string): Promise<string>;
7
- }
8
-
9
- export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment };
package/dist/snapshot.js DELETED
@@ -1,6 +0,0 @@
1
- export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from './chunks/node.COQbm6gK.js';
2
- import '@vitest/snapshot/environment';
3
- import './chunks/utils.BX5Fg8C4.js';
4
- import '@vitest/utils/timers';
5
-
6
- console.warn("Importing from \"vitest/snapshot\" is deprecated since Vitest 4.1. Please use \"vitest/runtime\" instead.");
package/dist/suite.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export { g as getBenchFn, a as getBenchOptions } from './chunks/suite.d.udJtyAgw.js';
2
- export { VitestRunner, VitestRunnerConfig, createTaskCollector, getCurrentSuite, getCurrentTest, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
3
- export { createChainable } from '@vitest/runner/utils';
4
- import './chunks/benchmark.d.DAaHLpsq.js';
5
- import 'tinybench';
package/dist/suite.js DELETED
@@ -1,8 +0,0 @@
1
- export { g as getBenchFn, a as getBenchOptions } from './chunks/benchmark.CX_oY03V.js';
2
- export { createTaskCollector, getCurrentSuite, getCurrentTest, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
3
- export { createChainable } from '@vitest/runner/utils';
4
- import '@vitest/utils/helpers';
5
- import './chunks/utils.BX5Fg8C4.js';
6
- import '@vitest/utils/timers';
7
-
8
- console.warn("Importing from \"vitest/suite\" is deprecated since Vitest 4.1. Please use static methods of \"TestRunner\" from the \"vitest\" entry point instead: e.g., `TestRunner.getCurrentTest()`.");