refactor(config): generate paas profile from default overlay

This commit is contained in:
William Valentin
2026-02-23 17:11:02 -08:00
parent 5b95eb1874
commit 076379bfc1
6 changed files with 268 additions and 19 deletions
+15
View File
@@ -0,0 +1,15 @@
import { readFileSync } from 'fs';
import { parse } from 'yaml';
import { describe, expect, it } from 'vitest';
import { deepMerge } from './loader.js';
describe('config profile templates', () => {
it('keeps config/paas.yaml in sync with default + paas overlay', () => {
const base = parse(readFileSync('config/default.yaml', 'utf-8')) as Record<string, unknown>;
const overlay = parse(readFileSync('config/profiles/paas.overlay.yaml', 'utf-8')) as Record<string, unknown>;
const generated = parse(readFileSync('config/paas.yaml', 'utf-8')) as Record<string, unknown>;
const expected = deepMerge(base, overlay);
expect(generated).toEqual(expected);
});
});