feat(scenario): CHE 0기 여명 시나리오를 추가한다
일반 공백지 규칙을 유지하면서 가동 전 M장 50명과 유니크 획득 계수 2배를 적용한다. 시나리오 합성, 실제 M장 생성, Gateway 카탈로그와 Chromium 선택지를 회귀 검증한다.
This commit is contained in:
@@ -3,6 +3,16 @@ import { describe, expect, it } from 'vitest';
|
||||
import { listScenarioPreviews, resolveGitCommitSha } from '../src/scenario/scenarioCatalog.js';
|
||||
|
||||
describe('scenarioCatalog git ref support', () => {
|
||||
it('includes the CHE zero-season dawn scenario in the local catalog', async () => {
|
||||
const previews = await listScenarioPreviews();
|
||||
|
||||
expect(previews.find((scenario) => scenario.id === 916)).toMatchObject({
|
||||
id: 916,
|
||||
title: '【공백지】 여명',
|
||||
year: 180,
|
||||
});
|
||||
});
|
||||
|
||||
it('resolves HEAD to a commit hash', async () => {
|
||||
const commitSha = await resolveGitCommitSha('HEAD');
|
||||
expect(commitSha).toMatch(/^[0-9a-f]{40}$/i);
|
||||
@@ -18,6 +28,11 @@ describe('scenarioCatalog git ref support', () => {
|
||||
expect(previews.every((scenario) => scenario.fiction === null || Number.isInteger(scenario.fiction))).toBe(
|
||||
true
|
||||
);
|
||||
expect(previews.find((scenario) => scenario.id === 916)).toMatchObject({
|
||||
id: 916,
|
||||
title: '【공백지】 여명',
|
||||
year: 180,
|
||||
});
|
||||
});
|
||||
|
||||
it('rejects without crashing when git cannot be spawned', async () => {
|
||||
|
||||
Reference in New Issue
Block a user