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/coverage.d.BZtK59WP.d.ts | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 vanilla/node_modules/vitest/dist/chunks/coverage.d.BZtK59WP.d.ts (limited to 'vanilla/node_modules/vitest/dist/chunks/coverage.d.BZtK59WP.d.ts') diff --git a/vanilla/node_modules/vitest/dist/chunks/coverage.d.BZtK59WP.d.ts b/vanilla/node_modules/vitest/dist/chunks/coverage.d.BZtK59WP.d.ts new file mode 100644 index 0000000..2b4d853 --- /dev/null +++ b/vanilla/node_modules/vitest/dist/chunks/coverage.d.BZtK59WP.d.ts @@ -0,0 +1,37 @@ +interface RuntimeCoverageModuleLoader { + import: (id: string) => Promise<{ + default: RuntimeCoverageProviderModule; + }>; + isBrowser?: boolean; + moduleExecutionInfo?: Map; +} +interface RuntimeCoverageProviderModule { + /** + * Factory for creating a new coverage provider + */ + getProvider: () => any; + /** + * Executed before tests are run in the worker thread. + */ + startCoverage?: (runtimeOptions: { + isolate: boolean; + }) => unknown | Promise; + /** + * Executed on after each run in the worker thread. Possible to return a payload passed to the provider + */ + takeCoverage?: (runtimeOptions?: { + moduleExecutionInfo?: Map; + }) => unknown | Promise; + /** + * Executed after all tests have been run in the worker thread. + */ + stopCoverage?: (runtimeOptions: { + isolate: boolean; + }) => unknown | Promise; +} + +export type { RuntimeCoverageModuleLoader as R, RuntimeCoverageProviderModule as a }; -- cgit v1.2.3