/** * Sets up default testing mocks that cover most common React testing needs. * * This convenience function provides a balanced set of mocks that cover most React * application testing needs. It includes all the basic mocks plus essential React * testing utilities. Specifically, it includes: * * From setupBasicMocks: * - Canvas API mocks * - Console error reporting to fail tests * - IntersectionObserver mocks * - MatchMedia API mocks * - ResizeObserver mocks * - Timer mocks (setTimeout, setInterval) * - Web Streams API mocks * * Plus these additional mocks: * - React Testing Library and Okta authentication mocks * - Translation mocks (i18n) * * This is ideal for most React applications that use i18n translations and need * standard testing environment setup, without requiring specialized mocks for things * like Google Maps or virtualized lists. * * @param options Configuration options for individual mocks * @param options.failOnConsoleOptions Options for setupFailOnConsole * @example * // In your jest setup file * import { setupDefaultMocks } from '@trackunit/react-test-setup'; * * setupDefaultMocks(); * * // Or with options for specific mocks: * setupDefaultMocks({ * failOnConsoleOptions: { shouldFailOnWarn: true } * }); */ import { SetupBasicMocksOptions } from "./setupBasicMocks"; /** * Options for configuring the setupDefaultMocks function. * Currently shares the same options structure as SetupBasicMocksOptions. */ export type SetupDefaultMocksOptions = SetupBasicMocksOptions; /** * Sets up default testing mocks covering most common React testing scenarios. * * @param options Configuration options for the mocks */ export declare const setupDefaultMocks: (options?: SetupDefaultMocksOptions) => void;