import failOnConsole from "jest-fail-on-console"; /** * This will make your tests fail if they log to console.error during the tests. * See more details here: https://www.npmjs.com/package/jest-fail-on-console * * This setup also automatically suppresses jsdom CSS parsing errors for modern CSS features * that jsdom doesn't support (@container queries and :has() selector). Other CSS parsing * errors will still cause tests to fail. * * If your tests logs to console.error on purpose, you should spy on the console like so: * ``` * jest.spyOn(console, 'error').mockImplementation() * // Do your logic ... * expect(console.error).toHaveBeenCalledWith('your error message') * ``` */ export declare const setupFailOnConsole: (overrides?: Partial) => void;