vitest 4.0.0-beta.12 → 4.0.0-beta.14

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 (31) hide show
  1. package/browser/context.d.ts +6 -0
  2. package/browser/context.js +20 -0
  3. package/dist/browser.d.ts +3 -3
  4. package/dist/browser.js +7 -0
  5. package/dist/chunks/{browser.d.D9YV3JvA.d.ts → browser.d.CM1rjKAX.d.ts} +1 -2
  6. package/dist/chunks/{cac.r1gel_VZ.js → cac.DOq1v3N-.js} +7 -7
  7. package/dist/chunks/{cli-api.CpywZzJV.js → cli-api.CD_0qYMh.js} +33 -64
  8. package/dist/chunks/{coverage.CiB0fs_7.js → coverage.3htTSxXZ.js} +227 -39
  9. package/dist/chunks/{creator.DfXDsUyL.js → creator.Daoa5_gR.js} +2 -28
  10. package/dist/chunks/environment.d.CrsxCzP1.d.ts +29 -0
  11. package/dist/chunks/{global.d.BcFPD2LN.d.ts → global.d.YxmikCHu.d.ts} +1 -1
  12. package/dist/chunks/{index.uLUz1RDt.js → index.01uBqPwR.js} +1 -1
  13. package/dist/chunks/{index.CHrBLuEH.js → index.DehVUBn4.js} +2 -109
  14. package/dist/chunks/{moduleRunner.d.CeYc7nZ0.d.ts → moduleRunner.d.CTZUg34g.d.ts} +1 -2
  15. package/dist/chunks/{plugin.d.XreRXLXS.d.ts → plugin.d.DvkMsuLk.d.ts} +1 -1
  16. package/dist/chunks/{reporters.d.CJVTaaWb.d.ts → reporters.d.DhY37FSs.d.ts} +73 -38
  17. package/dist/chunks/{typechecker.BfOQ86_a.js → typechecker.DsKAhua5.js} +108 -1
  18. package/dist/chunks/{worker.d.buwuBpBt.d.ts → worker.d.B8jq7m7O.d.ts} +38 -2
  19. package/dist/cli.js +3 -3
  20. package/dist/config.d.ts +9 -8
  21. package/dist/coverage.d.ts +6 -5
  22. package/dist/coverage.js +6 -5
  23. package/dist/environments.d.ts +3 -2
  24. package/dist/index.d.ts +8 -8
  25. package/dist/module-evaluator.d.ts +4 -3
  26. package/dist/node.d.ts +9 -8
  27. package/dist/node.js +20 -20
  28. package/dist/reporters.d.ts +10 -9
  29. package/dist/reporters.js +4 -4
  30. package/package.json +26 -12
  31. package/dist/chunks/environment.d.BsToaxti.d.ts +0 -65
package/dist/node.d.ts CHANGED
@@ -3,24 +3,24 @@ import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as Res
3
3
  export { vite as Vite };
4
4
  export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
5
5
  import { IncomingMessage } from 'node:http';
6
- import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as Pool, l as TestSequencer, L as Logger } from './chunks/reporters.d.CJVTaaWb.js';
7
- export { al as BaseCoverageOptions, G as BenchmarkUserOptions, K as BrowserBuiltinProvider, N as BrowserCommand, Q as BrowserCommandContext, X as BrowserConfigOptions, Y as BrowserInstanceOption, Z as BrowserModuleMocker, _ as BrowserOrchestrator, $ as BrowserProvider, a0 as BrowserProviderOption, a1 as BrowserScript, a2 as BrowserServerState, a3 as BrowserServerStateSession, aa as BuiltinEnvironment, a4 as CDPSession, ab as CSSModuleScopeStrategy, am as CoverageIstanbulOptions, an as CoverageOptions, ao as CoverageProvider, ap as CoverageProviderModule, aq as CoverageReporter, c as CoverageV8Options, ar as CustomProviderOptions, ac as DepsOptimizationOptions, ad as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a5 as ParentProjectBrowser, ae as PoolOptions, a6 as ProjectBrowser, af as ProjectConfig, b as ReportContext, at as ReportedHookContext, au as Reporter, ah as ResolveSnapshotPathHandler, ai as ResolveSnapshotPathHandlerContext, a7 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ag as ResolvedProjectConfig, S as SerializedTestProject, p as TaskOptions, q as TestCase, r as TestCollection, s as TestDiagnostic, t as TestModule, u as TestModuleState, v as TestResult, w as TestResultFailed, x as TestResultPassed, y as TestResultSkipped, av as TestRunEndReason, as as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, a8 as ToMatchScreenshotComparators, a9 as ToMatchScreenshotOptions, aj as TypecheckConfig, U as UserWorkspaceConfig, ak as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.d.CJVTaaWb.js';
6
+ import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as Pool, l as TestSequencer, L as Logger } from './chunks/reporters.d.DhY37FSs.js';
7
+ export { ao as BaseCoverageOptions, G as BenchmarkUserOptions, K as BrowserBuiltinProvider, N as BrowserCommand, Q as BrowserCommandContext, X as BrowserConfigOptions, Y as BrowserInstanceOption, Z as BrowserModuleMocker, $ as BrowserOrchestrator, a0 as BrowserProvider, a1 as BrowserProviderOption, a2 as BrowserScript, a3 as BrowserServerFactory, a4 as BrowserServerOptions, a5 as BrowserServerState, a6 as BrowserServerStateSession, ad as BuiltinEnvironment, a7 as CDPSession, ae as CSSModuleScopeStrategy, ap as CoverageIstanbulOptions, aq as CoverageOptions, ar as CoverageProvider, as as CoverageProviderModule, at as CoverageReporter, c as CoverageV8Options, au as CustomProviderOptions, af as DepsOptimizationOptions, ag as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a8 as ParentProjectBrowser, ah as PoolOptions, a9 as ProjectBrowser, ai as ProjectConfig, b as ReportContext, aw as ReportedHookContext, ax as Reporter, ak as ResolveSnapshotPathHandler, al as ResolveSnapshotPathHandlerContext, aa as ResolvedBrowserOptions, R as ResolvedCoverageOptions, aj as ResolvedProjectConfig, S as SerializedTestProject, p as TaskOptions, q as TestCase, r as TestCollection, s as TestDiagnostic, t as TestModule, u as TestModuleState, v as TestResult, w as TestResultFailed, x as TestResultPassed, y as TestResultSkipped, ay as TestRunEndReason, av as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, ab as ToMatchScreenshotComparators, ac as ToMatchScreenshotOptions, am as TypecheckConfig, U as UserWorkspaceConfig, an as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, _ as _BrowserNames, E as experimental_getRunnerTask } from './chunks/reporters.d.DhY37FSs.js';
8
8
  import { Awaitable } from '@vitest/utils';
9
9
  export { SerializedError } from '@vitest/utils';
10
- import { a as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.buwuBpBt.js';
11
- export { T as TestExecutionType } from './chunks/worker.d.buwuBpBt.js';
10
+ import { a as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.B8jq7m7O.js';
11
+ export { T as TestExecutionType } from './chunks/worker.d.B8jq7m7O.js';
12
12
  import { Writable } from 'node:stream';
13
- export { V as VitestPluginContext } from './chunks/plugin.d.XreRXLXS.js';
13
+ export { V as VitestPluginContext } from './chunks/plugin.d.DvkMsuLk.js';
14
14
  import { MessagePort } from 'node:worker_threads';
15
15
  import { Debugger } from 'debug';
16
- import './chunks/global.d.BcFPD2LN.js';
16
+ import './chunks/global.d.YxmikCHu.js';
17
17
  export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
18
18
  export { b as RuntimeConfig } from './chunks/config.d.DGazh2r6.js';
19
19
  export { generateFileHash } from '@vitest/runner/utils';
20
- import './chunks/environment.d.BsToaxti.js';
21
20
  import '@vitest/mocker';
22
21
  import '@vitest/utils/source-map';
23
- import './chunks/browser.d.D9YV3JvA.js';
22
+ import 'vitest/browser';
23
+ import './chunks/browser.d.CM1rjKAX.js';
24
24
  import '@vitest/pretty-format';
25
25
  import '@vitest/snapshot';
26
26
  import '@vitest/utils/diff';
@@ -33,6 +33,7 @@ import '@vitest/snapshot/manager';
33
33
  import 'node:fs';
34
34
  import 'node:console';
35
35
  import 'vite/module-runner';
36
+ import './chunks/environment.d.CrsxCzP1.js';
36
37
 
37
38
  type RawErrsMap = Map<string, TscErrorInfo[]>;
38
39
  interface TscErrorInfo {
package/dist/node.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as vite from 'vite';
2
2
  import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
3
3
  export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
4
- import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.CpywZzJV.js';
5
- export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, h as createDebugger, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.CpywZzJV.js';
6
- export { p as parseCLI } from './chunks/cac.r1gel_VZ.js';
7
- import { r as resolveConfig$2 } from './chunks/coverage.CiB0fs_7.js';
8
- export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.CiB0fs_7.js';
4
+ import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.CD_0qYMh.js';
5
+ export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.CD_0qYMh.js';
6
+ export { p as parseCLI } from './chunks/cac.DOq1v3N-.js';
7
+ import { r as resolveConfig$2 } from './chunks/coverage.3htTSxXZ.js';
8
+ export { b as BaseSequencer, d as createDebugger, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.3htTSxXZ.js';
9
9
  import { slash, deepClone } from '@vitest/utils/helpers';
10
10
  import { a as any } from './chunks/index.Dc3xnDvT.js';
11
11
  import { resolve } from 'pathe';
@@ -18,21 +18,9 @@ import 'node:path';
18
18
  import 'node:os';
19
19
  import '@vitest/snapshot/manager';
20
20
  import './chunks/index.Bgo3tNWt.js';
21
- import './chunks/index.CHrBLuEH.js';
22
- import 'node:fs/promises';
23
- import './chunks/typechecker.BfOQ86_a.js';
21
+ import './chunks/typechecker.DsKAhua5.js';
24
22
  import 'node:perf_hooks';
25
23
  import 'tinyexec';
26
- import '@vitest/utils/source-map';
27
- import 'tinyrainbow';
28
- import './chunks/env.D4Lgay0q.js';
29
- import 'std-env';
30
- import 'node:util';
31
- import 'node:console';
32
- import 'node:stream';
33
- import '@vitest/utils/display';
34
- import '@vitest/utils/offset';
35
- import 'node:module';
36
24
  import 'events';
37
25
  import 'https';
38
26
  import 'http';
@@ -45,10 +33,21 @@ import 'zlib';
45
33
  import 'buffer';
46
34
  import './chunks/_commonjsHelpers.BFTU3MAI.js';
47
35
  import 'node:crypto';
48
- import 'debug';
49
36
  import '#module-evaluator';
50
37
  import 'vite/module-runner';
38
+ import 'node:console';
39
+ import 'tinyrainbow';
51
40
  import '@vitest/utils/highlight';
41
+ import './chunks/index.DehVUBn4.js';
42
+ import 'node:fs/promises';
43
+ import '@vitest/utils/source-map';
44
+ import './chunks/env.D4Lgay0q.js';
45
+ import 'std-env';
46
+ import 'node:util';
47
+ import 'node:stream';
48
+ import '@vitest/utils/display';
49
+ import '@vitest/utils/offset';
50
+ import 'node:module';
52
51
  import 'node:url';
53
52
  import 'picomatch';
54
53
  import 'tinyglobby';
@@ -58,13 +57,14 @@ import './chunks/defaults.CXFFjsi8.js';
58
57
  import '@vitest/utils/constants';
59
58
  import '@vitest/utils/resolver';
60
59
  import 'es-module-lexer';
61
- import './chunks/index.uLUz1RDt.js';
60
+ import './chunks/index.01uBqPwR.js';
62
61
  import 'node:assert';
63
62
  import '@vitest/utils/serialize';
64
63
  import 'node:readline';
65
64
  import 'node:process';
66
65
  import 'node:v8';
67
66
  import 'node:tty';
67
+ import 'debug';
68
68
  import 'node:events';
69
69
  import 'tinypool';
70
70
  import 'node:worker_threads';
@@ -1,18 +1,19 @@
1
- export { aJ as BaseReporter, aK as BenchmarkBuiltinReporters, aw as BenchmarkReporter, ax as BenchmarkReportsMap, aL as BuiltinReporterOptions, aM as BuiltinReporters, ay as DefaultReporter, az as DotReporter, aA as GithubActionsReporter, aB as HangingProcessReporter, aD as JUnitReporter, aN as JsonAssertionResult, aC as JsonReporter, aO as JsonTestResult, aP as JsonTestResults, at as ReportedHookContext, au as Reporter, aE as ReportersMap, aF as TapFlatReporter, aG as TapReporter, av as TestRunEndReason, aH as VerboseBenchmarkReporter, aI as VerboseReporter } from './chunks/reporters.d.CJVTaaWb.js';
1
+ export { aM as BaseReporter, aN as BenchmarkBuiltinReporters, az as BenchmarkReporter, aA as BenchmarkReportsMap, aO as BuiltinReporterOptions, aP as BuiltinReporters, aB as DefaultReporter, aC as DotReporter, aD as GithubActionsReporter, aE as HangingProcessReporter, aG as JUnitReporter, aQ as JsonAssertionResult, aF as JsonReporter, aR as JsonTestResult, aS as JsonTestResults, aw as ReportedHookContext, ax as Reporter, aH as ReportersMap, aI as TapFlatReporter, aJ as TapReporter, ay as TestRunEndReason, aK as VerboseBenchmarkReporter, aL as VerboseReporter } from './chunks/reporters.d.DhY37FSs.js';
2
2
  import '@vitest/runner';
3
3
  import '@vitest/utils';
4
- import './chunks/environment.d.BsToaxti.js';
5
- import 'node:stream';
6
- import 'vite';
7
- import '@vitest/mocker';
8
- import '@vitest/utils/source-map';
4
+ import './chunks/worker.d.B8jq7m7O.js';
5
+ import 'vite/module-runner';
9
6
  import './chunks/config.d.DGazh2r6.js';
10
7
  import '@vitest/pretty-format';
11
8
  import '@vitest/snapshot';
12
9
  import '@vitest/utils/diff';
13
- import './chunks/browser.d.D9YV3JvA.js';
14
- import './chunks/worker.d.buwuBpBt.js';
15
- import 'vite/module-runner';
10
+ import './chunks/environment.d.CrsxCzP1.js';
11
+ import 'node:stream';
12
+ import 'vite';
13
+ import '@vitest/mocker';
14
+ import '@vitest/utils/source-map';
15
+ import 'vitest/browser';
16
+ import './chunks/browser.d.CM1rjKAX.js';
16
17
  import '@vitest/expect';
17
18
  import 'vitest/optional-types.js';
18
19
  import './chunks/benchmark.d.DAaHLpsq.js';
package/dist/reporters.js CHANGED
@@ -1,11 +1,11 @@
1
- export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.CHrBLuEH.js';
2
- export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.uLUz1RDt.js';
1
+ export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.DehVUBn4.js';
2
+ export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.01uBqPwR.js';
3
3
  import 'node:fs';
4
4
  import 'node:fs/promises';
5
- import 'pathe';
6
- import './chunks/typechecker.BfOQ86_a.js';
5
+ import './chunks/typechecker.DsKAhua5.js';
7
6
  import 'node:os';
8
7
  import 'node:perf_hooks';
8
+ import 'pathe';
9
9
  import 'tinyexec';
10
10
  import './path.js';
11
11
  import 'node:path';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.12",
4
+ "version": "4.0.0-beta.14",
5
5
  "description": "Next generation testing framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -39,6 +39,10 @@
39
39
  "default": "./index.cjs"
40
40
  }
41
41
  },
42
+ "./browser": {
43
+ "types": "./browser/context.d.ts",
44
+ "default": "./browser/context.js"
45
+ },
42
46
  "./package.json": "./package.json",
43
47
  "./optional-types.js": {
44
48
  "types": "./optional-types.d.ts"
@@ -114,6 +118,7 @@
114
118
  "*.d.ts",
115
119
  "*.mjs",
116
120
  "bin",
121
+ "browser",
117
122
  "dist"
118
123
  ],
119
124
  "engines": {
@@ -125,8 +130,10 @@
125
130
  "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
126
131
  "happy-dom": "*",
127
132
  "jsdom": "*",
128
- "@vitest/browser": "4.0.0-beta.12",
129
- "@vitest/ui": "4.0.0-beta.12"
133
+ "@vitest/browser-playwright": "4.0.0-beta.14",
134
+ "@vitest/browser-preview": "4.0.0-beta.14",
135
+ "@vitest/browser-webdriverio": "4.0.0-beta.14",
136
+ "@vitest/ui": "4.0.0-beta.14"
130
137
  },
131
138
  "peerDependenciesMeta": {
132
139
  "@edge-runtime/vm": {
@@ -138,7 +145,13 @@
138
145
  "@types/node": {
139
146
  "optional": true
140
147
  },
141
- "@vitest/browser": {
148
+ "@vitest/browser-playwright": {
149
+ "optional": true
150
+ },
151
+ "@vitest/browser-preview": {
152
+ "optional": true
153
+ },
154
+ "@vitest/browser-webdriverio": {
142
155
  "optional": true
143
156
  },
144
157
  "@vitest/ui": {
@@ -166,13 +179,13 @@
166
179
  "tinyrainbow": "^3.0.3",
167
180
  "vite": "^6.0.0 || ^7.0.0-0",
168
181
  "why-is-node-running": "^2.3.0",
169
- "@vitest/expect": "4.0.0-beta.12",
170
- "@vitest/mocker": "4.0.0-beta.12",
171
- "@vitest/pretty-format": "4.0.0-beta.12",
172
- "@vitest/runner": "4.0.0-beta.12",
173
- "@vitest/snapshot": "4.0.0-beta.12",
174
- "@vitest/utils": "4.0.0-beta.12",
175
- "@vitest/spy": "4.0.0-beta.12"
182
+ "@vitest/expect": "4.0.0-beta.14",
183
+ "@vitest/mocker": "4.0.0-beta.14",
184
+ "@vitest/pretty-format": "4.0.0-beta.14",
185
+ "@vitest/runner": "4.0.0-beta.14",
186
+ "@vitest/utils": "4.0.0-beta.14",
187
+ "@vitest/snapshot": "4.0.0-beta.14",
188
+ "@vitest/spy": "4.0.0-beta.14"
176
189
  },
177
190
  "devDependencies": {
178
191
  "@antfu/install-pkg": "^1.1.0",
@@ -199,7 +212,8 @@
199
212
  "mime": "^4.1.0",
200
213
  "prompts": "^2.4.2",
201
214
  "strip-literal": "^3.0.0",
202
- "ws": "^8.18.3"
215
+ "ws": "^8.18.3",
216
+ "@vitest/browser-playwright": "4.0.0-beta.14"
203
217
  },
204
218
  "scripts": {
205
219
  "build": "premove dist && rollup -c",
@@ -1,65 +0,0 @@
1
- type Awaitable<T> = T | PromiseLike<T>;
2
- type Arrayable<T> = T | Array<T>;
3
- interface AfterSuiteRunMeta {
4
- coverage?: unknown;
5
- testFiles: string[];
6
- environment: string;
7
- projectName?: string;
8
- }
9
- interface UserConsoleLog {
10
- content: string;
11
- origin?: string;
12
- browser?: boolean;
13
- type: "stdout" | "stderr";
14
- taskId?: string;
15
- time: number;
16
- size: number;
17
- }
18
- interface ModuleGraphData {
19
- graph: Record<string, string[]>;
20
- externalized: string[];
21
- inlined: string[];
22
- }
23
- interface ProvidedContext {}
24
- interface ResolveFunctionResult {
25
- id: string;
26
- file: string;
27
- url: string;
28
- }
29
- interface FetchCachedFileSystemResult {
30
- cached: true;
31
- tmp: string;
32
- id: string;
33
- file: string | null;
34
- url: string;
35
- invalidate: boolean;
36
- }
37
- type LabelColor = "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white";
38
-
39
- interface EnvironmentReturn {
40
- teardown: (global: any) => Awaitable<void>;
41
- }
42
- interface VmEnvironmentReturn {
43
- getVmContext: () => {
44
- [key: string]: any;
45
- };
46
- teardown: () => Awaitable<void>;
47
- }
48
- interface Environment {
49
- name: string;
50
- /**
51
- * @deprecated use `viteEnvironment` instead. Uses `name` by default
52
- */
53
- transformMode?: "web" | "ssr";
54
- /**
55
- * Environment initiated by the Vite server. It is usually available
56
- * as `vite.server.environments.${name}`.
57
- *
58
- * By default, fallbacks to `name`.
59
- */
60
- viteEnvironment?: "client" | "ssr" | ({} & string);
61
- setupVM?: (options: Record<string, any>) => Awaitable<VmEnvironmentReturn>;
62
- setup: (global: any, options: Record<string, any>) => Awaitable<EnvironmentReturn>;
63
- }
64
-
65
- export type { AfterSuiteRunMeta as A, Environment as E, FetchCachedFileSystemResult as F, LabelColor as L, ModuleGraphData as M, ProvidedContext as P, ResolveFunctionResult as R, UserConsoleLog as U, VmEnvironmentReturn as V, EnvironmentReturn as a, Awaitable as b, Arrayable as c };