test: audit and strengthen legacy test suite

This commit is contained in:
Hide_D committed 2026-07-25 06:54:18 +00:00
1 parent 46ae79dbe7
commit 7ed1b5df7f
27 files changed
+422 -654

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ import { parseScenarioDefaults, parseScenarioDefinition } from '../src/scenario/
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const repoRoot = path.resolve(__dirname, '..', '..', '..');
const scenarioRoot = path.join(repoRoot, 'legacy', 'hwe', 'scenario');
const scenarioRoot = path.join(repoRoot, 'resources', 'scenario');
const readJson = async (filePath: string): Promise<unknown> => {
const raw = await fs.readFile(filePath, 'utf8');
@@ -17,7 +17,7 @@ const readJson = async (filePath: string): Promise<unknown> => {
};
describe('scenario parser', () => {
it('reads defaults from legacy default.json', async () => {
it('reads defaults from the tracked legacy-format default.json', async () => {
const defaultsRaw = await readJson(path.join(scenarioRoot, 'default.json'));
const defaults = parseScenarioDefaults(defaultsRaw);