test: add storage coverage (firebase contract, factory), silence scenario log

- firebase.contract.test.js: run storage contract against createFirebaseStorage
  via SDK mock. Currently 12 fail (firebase diverges from contract: no norm(),
  injects id). Failures real — firebase copied from main, memory/ws invented
  new requirements. Contract under review vs main prod truth.
- storage.factory.test.js: getStorage() routing per REACT_APP_STORAGE env,
  singleton cache, getStorageMode() reporting.
- Combat.scenario.test.js: remove console.log (test noise).
- package.json: test:all now runs App + shared + server suites (was missing App).
This commit is contained in:
david raistrick
2026-07-03 18:53:58 -04:00
parent 7f60ec140e
commit b12ac904a6
4 changed files with 95 additions and 6 deletions
+1 -5
View File
@@ -1,5 +1,5 @@
// Combat.scenario.test.js
// Full combat scenario driven through shared/turn.js directly NO React.
// Full combat scenario driven through shared/turn.js directly --- NO React.
//
// Does 100 ROUNDS (not turns). A round = one full pass through initiative
// (every active participant acts once); round counter increments at wrap.
@@ -311,10 +311,6 @@ test('full 100-round combat scenario (shared, no React)', async () => {
await recordAsync('endCombat', () => endCombat());
// sanity log: prove we actually ran ROUNDS rounds, not ~ROUNDS turns
// eslint-disable-next-line no-console
console.log(`\nscenario: ${roundsDone} rounds, ${turnTotal} turns\n`);
// ---------- report ----------
const failed = RESULTS.filter(x => !x.ok);
if (failed.length > 0) {