Rework story engine flow and reorganize project docs
Some checks failed
CI / verify (push) Has been cancelled
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
28
src/services/storyEngine/narrativeRegressionReplay.test.ts
Normal file
28
src/services/storyEngine/narrativeRegressionReplay.test.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { recordReplaySeed, replayNarrativeRun } from './narrativeRegressionReplay';
|
||||
|
||||
describe('narrativeRegressionReplay', () => {
|
||||
it('records and replays a narrative seed summary', () => {
|
||||
const seed = recordReplaySeed({
|
||||
seed: 'baseline',
|
||||
label: 'Baseline',
|
||||
});
|
||||
const replay = replayNarrativeRun({
|
||||
recordedSeed: seed,
|
||||
result: {
|
||||
id: 'simulation-1',
|
||||
scenarioPackId: 'scenario-1',
|
||||
campaignPackId: 'campaign-1',
|
||||
seed: 'baseline',
|
||||
endingId: 'ending-1',
|
||||
activeThreadCountPeak: 2,
|
||||
fracturedCompanionCount: 0,
|
||||
issueCount: 1,
|
||||
summary: 'Baseline summary',
|
||||
},
|
||||
});
|
||||
|
||||
expect(replay.summary).toContain('Baseline');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user