import { toHaveNoViolations } from "jest-axe" ; import expectAndFail from "./expectAndFail" ; import "jest-mock-console/dist/setupTestFramework" ; import "./setupConsole" ; ( global as any ) . expectAndFail = expectAndFail ; process . on ( "unhandledRejection" , ( err ) => { console . error ( "Unhandled Rejection" ) ; console . error ( err ) ; } ) ; expect . extend ( toHaveNoViolations ) ; beforeEach ( ( ) => { jest . setTimeout ( 20000 ) ; } ) ;