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
2026-07-03 15:58:50 -04:00
parent 1a744e511a
commit 530aaadf90
4 changed files with 1185 additions and 6 deletions
+1148 -2
View File
File diff suppressed because it is too large Load Diff