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
+7 -3
View File
@@ -5,10 +5,14 @@ REWORK_PLAN.md.
## Feature backlog
### CRITICAL BUG - storage
- docker for sql is not using persistant storage...
TODO: FIX: test for warnings. any warnings in tests, or compile or runtime == failure. like perl and php used to ahve. warning == error. we should lways solve them
TODO: make tests have integrated timeout - even 60s is probabvly too long, should not take long.
TODO: combat.scenario doesnt do 100 rounds it does 100 turns. recover from kill-shared stash
### feat - campaign section rollup
### feat - add all characters to participants list