Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/wojtekmaj/vitest-react-native. Run React Native unit and component tests with Vitest
Something went wrong. Try again.
809 B · 27 lines
TypeScript
at main
12345678910111213141516171819202122232425262728import type { RuntimeOptions } from './types.js';
export type NativeResolverOptions = { basedir: string; extensions: string[]; defaultResolver: (request: string, options: NativeResolverOptions) => string;};
export type NativeResolver = (request: string, options: NativeResolverOptions) => string;
/** * Worker-owned resources shared by the native resolution and source-loading hooks. */export type NativeRuntime = { root: string; options: RuntimeOptions; require: NodeJS.Require; sharedModules: Map<string, string>; nativeRoot: string; extensions: string[]; nativeResolver?: NativeResolver; matchTsconfigPaths?: (specifier: string) => string[]; compilerDirectories: string[]; nativeSetupFiles: string[]; factories: Map<string, () => unknown>; loadedFiles: Set<string>;};