From 76cb9c2a39d477a64824a985ade40507e3bbade1 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Fri, 13 Feb 2026 21:34:48 -0800 Subject: feat(vanilla): add testing infrastructure and tests (NK-wjnczv) --- .../vitest/dist/chunks/environment.d.CrsxCzP1.d.ts | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vanilla/node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts (limited to 'vanilla/node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts') diff --git a/vanilla/node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts b/vanilla/node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts new file mode 100644 index 0000000..162cf76 --- /dev/null +++ b/vanilla/node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts @@ -0,0 +1,29 @@ +import { Awaitable } from '@vitest/utils'; + +interface EnvironmentReturn { + teardown: (global: any) => Awaitable; +} +interface VmEnvironmentReturn { + getVmContext: () => { + [key: string]: any; + }; + teardown: () => Awaitable; +} +interface Environment { + name: string; + /** + * @deprecated use `viteEnvironment` instead. Uses `name` by default + */ + transformMode?: "web" | "ssr"; + /** + * Environment initiated by the Vite server. It is usually available + * as `vite.server.environments.${name}`. + * + * By default, fallbacks to `name`. + */ + viteEnvironment?: "client" | "ssr" | ({} & string); + setupVM?: (options: Record) => Awaitable; + setup: (global: any, options: Record) => Awaitable; +} + +export type { Environment as E, VmEnvironmentReturn as V, EnvironmentReturn as a }; -- cgit v1.2.3