Commit 1d8a663b by luoqi

test: canonical-fact-layer emits 检查豁免全部 upsert 资源(与 cold-import 三元组对齐)

原测试只豁免 patient,后来新增的 upsert 资源 patient_relation/patient_return_visit
(设计上无 emits)一直误报;friday/patient_relation.yaml 落地后同一缺陷第三次命中。
豁免集合改为与 importDirectory 排除 subjectCfgs 的三元组一致。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
parent b41acb7c
...@@ -129,8 +129,10 @@ function loadAllAssemblerYamls(): YamlFileInfo[] { ...@@ -129,8 +129,10 @@ function loadAllAssemblerYamls(): YamlFileInfo[] {
describe('canonical-fact-layer | 闸 3:yaml emits 段合法', () => { describe('canonical-fact-layer | 闸 3:yaml emits 段合法', () => {
const yamls = loadAllAssemblerYamls(); const yamls = loadAllAssemblerYamls();
// patient assembler 走 upsert 路径无 emits;其他必须有 emits // upsert 资源(patient/patient_relation/patient_return_visit)走 upsert 路径无 emits
const subjectYamls = yamls.filter((y) => y.config.canonical !== 'patient'); // (与 cold-import importDirectory 排除 subjectCfgs 的三元组一致);其他必须有 emits
const UPSERT_CANONICALS = new Set(['patient', 'patient_relation', 'patient_return_visit']);
const subjectYamls = yamls.filter((y) => !UPSERT_CANONICALS.has(y.config.canonical));
test('扫到至少 1 份 yaml(否则 data/<host>/assemblers 没东西)', () => { test('扫到至少 1 份 yaml(否则 data/<host>/assemblers 没东西)', () => {
expect(yamls.length).toBeGreaterThan(0); expect(yamls.length).toBeGreaterThan(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment