mirror of
https://github.com/soconnor0919/beenpad.git
synced 2026-02-05 08:16:37 -05:00
first commit
This commit is contained in:
38
node_modules/vitest/dist/chunks/plugin.d.CY7CUjf-.d.ts
generated
vendored
Normal file
38
node_modules/vitest/dist/chunks/plugin.d.CY7CUjf-.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { DevEnvironment } from 'vite';
|
||||
import { V as Vitest, T as TestProject, b as TestProjectConfiguration } from './reporters.d.OXEK7y4s.js';
|
||||
|
||||
/**
|
||||
* Generate a unique cache identifier.
|
||||
*
|
||||
* Return `false` to disable caching of the file.
|
||||
* @experimental
|
||||
*/
|
||||
interface CacheKeyIdGenerator {
|
||||
(context: CacheKeyIdGeneratorContext): string | undefined | null | false;
|
||||
}
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
interface CacheKeyIdGeneratorContext {
|
||||
environment: DevEnvironment;
|
||||
id: string;
|
||||
sourceCode: string;
|
||||
}
|
||||
|
||||
interface VitestPluginContext {
|
||||
vitest: Vitest;
|
||||
project: TestProject;
|
||||
injectTestProjects: (config: TestProjectConfiguration | TestProjectConfiguration[]) => Promise<TestProject[]>;
|
||||
/**
|
||||
* Define a generator that will be applied before hashing the cache key.
|
||||
*
|
||||
* Use this to make sure Vitest generates correct hash. It is a good idea
|
||||
* to define this function if your plugin can be registered with different options.
|
||||
*
|
||||
* This is called only if `experimental.fsModuleCache` is defined.
|
||||
* @experimental
|
||||
*/
|
||||
experimental_defineCacheKeyGenerator: (callback: CacheKeyIdGenerator) => void;
|
||||
}
|
||||
|
||||
export type { CacheKeyIdGenerator as C, VitestPluginContext as V, CacheKeyIdGeneratorContext as a };
|
||||
Reference in New Issue
Block a user