import '@testing-library/react' // React 19 + Testing Library 16: opt into the act environment so render(), // fireEvent(), and findBy* queries automatically flush state updates without // spurious "not wrapped in act(...)" warnings. ;(globalThis as any).IS_REACT_ACT_ENVIRONMENT = true