Single source of truth: combat logic, storage parity, slot ordering #3

Merged
robert merged 32 commits from single-source into main 2026-07-05 00:07:57 -04:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit 8ad750c60a - Show all commits
+1
View File
@@ -3,4 +3,5 @@ module.exports = {
testEnvironment: 'node', testEnvironment: 'node',
testMatch: ['<rootDir>/tests/**/*.test.js'], testMatch: ['<rootDir>/tests/**/*.test.js'],
collectCoverageFrom: ['turn.js'], collectCoverageFrom: ['turn.js'],
testTimeout: 10000,
}; };
+4
View File
@@ -8,6 +8,10 @@ import { resetMockDb } from './__mocks__/firebase/_mock-db';
// Must be set before any component renders. // Must be set before any component renders.
globalThis.IS_REACT_ACT_ENVIRONMENT = true; globalThis.IS_REACT_ACT_ENVIRONMENT = true;
// Test timeout guard. CRA blocks `testTimeout` in package.json jest config
// (not in allowlist). Set via jest global here instead. Fails fast on hang.
jest.setTimeout(10000);
// WARNING = FAILURE. Fail test on any console.error/warn (React act warnings, // WARNING = FAILURE. Fail test on any console.error/warn (React act warnings,
// deprecations, prop errors). App code's own error logs allowed only inside // deprecations, prop errors). App code's own error logs allowed only inside
// try/catch failure paths — those tests should assert the error was handled, // try/catch failure paths — those tests should assert the error was handled,