Files
core2026/test_output.txt
2026-01-08 14:16:34 +00:00

4.5 KiB

 
> @sammo-ts/logic@0.0.0 test /home/letrhee/core2026/packages/logic
> vitest run --config vitest.config.ts -- test/scenarios/blankStart.test.ts --run
 
 
RUN v4.0.16 /home/letrhee/core2026/packages/logic
 
test/message.test.ts (4 tests) 4ms
test/worldBootstrap.test.ts (1 test) 3ms
test/crewType.test.ts (2 tests) 3ms
test/scenarioParser.test.ts (3 tests) 12ms
stdout | test/scenarios/domestic.test.ts > Domestic Affairs Scenario > should increase agriculture when executing "Farming" command
Agriculture: 500 -> 600
 
test/scenarios/domestic.test.ts (2 tests) 6ms
test/scenarios/blankStart.test.ts (3 tests | 1 failed) 14ms
× should follow the correct founding scenario (uprising -> appointment -> founding) 12ms
should fail founding if city is not level 5 or 6 1ms
should fail founding after opening part 0ms
stdout | test/scenarios/troops.test.ts > Troop Management Scenario > should successfully draft troops, then train and boost morale
Drafted: 1000
 
stdout | test/scenarios/troops.test.ts > Troop Management Scenario > should successfully draft troops, then train and boost morale
Train: 10 -> 75
 
stdout | test/scenarios/troops.test.ts > Troop Management Scenario > should successfully draft troops, then train and boost morale
Atmos: 10 -> 75
 
test/scenarios/troops.test.ts (1 test) 7ms
test/warAftermath.test.ts (2 tests) 4ms
stdout | test/scenarios/diplomacy.test.ts > Diplomacy Scenario > should handle War Declaration and prevent/allow deployment accordingly
General Exp: 100 -> 100
 
test/dispatchWarAction.test.ts (1 test) 7ms
test/scenarios/diplomacy.test.ts (1 test) 7ms
test/warEngine.test.ts (2 tests) 11ms
test/scenarios/general_commands_new.test.ts (2 tests) 17ms
test/specialActions.test.ts (4 tests) 28ms
test/diplomacy.test.ts (4 tests) 2ms
 
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
 
FAIL test/scenarios/blankStart.test.ts > Blank Start Scenario > should follow the correct founding scenario (uprising -> appointment -> founding)
AssertionError: expected 'deny' to be 'allow' // Object.is equality
 
Expected: "allow"
Received: "deny"
 
test/scenarios/blankStart.test.ts:252:30
250| for (const constraint of foundNationDef.buildConstraints(final…
251| const res = constraint.test(finalCtx, finalView);
252| expect(res.kind).toBe('allow');
| ^
253| }
254|
 
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
 
 
Test Files 1 failed | 13 passed (14)
Tests 1 failed | 31 passed (32)
Start at 14:11:35
Duration 587ms (transform 2.41s, setup 0ms, import 3.55s, tests 123ms, environment 2ms)
 
/home/letrhee/core2026/packages/logic:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @sammo-ts/logic@0.0.0 test: `vitest run --config vitest.config.ts -- test/scenarios/blankStart.test.ts --run`
Exit status 1