7 lines
288 B
TypeScript
7 lines
288 B
TypeScript
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
|