/** * Sets up essential testing mocks that don't have external library dependencies. * * This convenience function configures a minimal set of test mocks that are broadly * applicable for most React testing scenarios without requiring specific external * libraries. It includes: * * - Canvas API mocks * - Console error reporting to fail tests * - IntersectionObserver mocks * - MatchMedia API mocks * - ResizeObserver mocks * - Timer mocks (setTimeout, setInterval) * - Web Streams API mocks * * This is perfect for projects that want essential testing mocks without bringing * in dependencies for libraries they don't use like Google Maps, React Virtual, etc. * * @param options Configuration options for individual mocks * @param options.failOnConsoleOptions Options for setupFailOnConsole * @example * // In your jest setup file * import { setupBasicMocks } from '@trackunit/react-vite-test-setup'; * * setupBasicMocks(); * * // Or with options for specific mocks: * setupBasicMocks({ * failOnConsoleOptions: { shouldFailOnWarn: true } * }); */ import { SetupAllMocksOptions } from "./setupAllMocks"; /** * Options for configuring the setupBasicMocks function. * Currently shares the same options structure as SetupAllMocksOptions. */ export type SetupBasicMocksOptions = SetupAllMocksOptions; /** * Sets up essential testing mocks with no external library dependencies. * * @param options Configuration options for the mocks */ export declare const setupBasicMocks: (options?: SetupBasicMocksOptions) => void;