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.
950 B · 37 lines
TypeScript
at main
1234567891011121314151617181920212223242526272829303132333435363738/** * Controls native module resolution and explicitly selected vendor test integrations. */export type ReactNativeOptions = { /** * Additional Babel plugins applied to native dependencies and application sources. */ babelPlugins?: string[];
/** * Platform files to prefer. Defaults to iOS. */ platform?: 'android' | 'ios';
/** * A library's synchronous test resolver, such as Reanimated's Jest resolver. */ nativeResolver?: string;
/** * Vendor setup files evaluated with the native preset's CommonJS mock API. */ nativeSetupFiles?: string[];
/** * Additional packages whose uncompiled JavaScript needs the native Babel preset. */ transformPackages?: string[];};
/** * Worker configuration, enriched with the string aliases resolved by Vite. */export interface RuntimeOptions extends ReactNativeOptions { aliases?: { find: string; replacement: string }[]; tsconfigPaths?: boolean;}