init with react+axum+spacetimedb
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-26 18:06:23 +08:00
commit cbc27bad4a
20199 changed files with 883714 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import { describe, expect, it } from 'vitest';
import { buildMatrixSummary, runPlaythroughMatrix } from './playthroughMatrixLab';
describe('playthroughMatrixLab', () => {
it('runs multiple deterministic simulations and summarizes them', () => {
const results = runPlaythroughMatrix({
scenarioPackId: 'scenario-1',
campaignPack: {
id: 'campaign-1',
scenarioPackId: 'scenario-1',
title: 'Campaign',
authoringStyle: 'classic',
campaignStateSeed: {
id: 'campaign-state',
title: 'Campaign',
currentActId: 'act-1',
currentActIndex: 0,
},
actTemplates: [],
requiredCompanionIds: [],
},
memory: {
activeThreadIds: ['thread-1'],
companionResolutions: [],
endingState: null,
} as never,
seeds: ['a', 'b', 'c'],
});
expect(results).toHaveLength(3);
expect(buildMatrixSummary(results)).toContain('3 条');
});
});