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:
david raistrick committed 2026-07-03 15:58:50 -04:00
1 parent 1a744e511a
commit 530aaadf90
4 files changed
+1185 -6

No files matched your search

+1148 -2
View File
File diff suppressed because it is too large. Load diff