test: kill act env warnings (globalThis flag + _notify act wrapper)
- setupTests.js: set globalThis.IS_REACT_ACT_ENVIRONMENT = true (RTL reads getGlobalThis, not global). Kills 'environment not configured for act'. - _mock-db.js _notify: set flag true around subscriber cb, restore prev after. RTL waitFor flips flag false mid-poll -> act() warned. Now clean. - 146 act warnings -> 0.
This commit is contained in:
1 parent
1a744e511a
commit
530aaadf90
4 files changed
+1185
-6
No files matched your search
Generated
+1148
-2
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user