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.
1.1 kB · 35 lines
TypeScript
at main
123456789101112131415161718192021222324252627282930313233343536import 'vitest';
import type * as matchers from '@testing-library/react-native/matchers';
/** * Public matcher exports follow the installed Testing Library version and renderer. * Assertion methods receive the matcher arguments after the tested instance. */type NativeMatchers<R> = { [Name in keyof typeof matchers]: ( ...args: Parameters<(typeof matchers)[Name]> extends [unknown, ...infer Args] ? Args : never ) => R;};
/** * Both supported Vitest versions expose this interface for asymmetric assertions. * Runtime registration happens in the worker, after native setup. */declare module 'vitest' { interface AsymmetricMatchersContaining extends NativeMatchers<void> {}}
/** * Chai's assertion interface is shared by Vitest 4, Vitest 5 and linked consumers. * Vitest derives the promise assertion return types from these synchronous methods. */declare global { namespace Chai { interface Assertion extends NativeMatchers<void> {} }}
export { default } from './index.js';
export type { ReactNativeOptions } from './types.js';