Skip to content

Commit bce0733

Browse files
committed
test(plugin-email): correct a _provenance fixture the blanket sweep was hiding
`_provenance: { source: 'code' }` is an object where `MetadataProvenanceSchema` is `z.enum(['package','org','env-forced'])`. The fixture was never spec-legal; the module-local blanket `_` sweep deleted it before the parse could say so. With the shared strip it reaches the schema and is rejected — the silent swallow, demonstrated on the repo's own fixture. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XpTx2tbq3pZRYAdoGt6E6Y
1 parent eeccde6 commit bce0733

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/plugins/plugin-email/src/email-plugin.template-runtime-write.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,12 @@ describe('#7733 runtime email_template write materializes without a restart', ()
277277
...template({ subject: 'The packaged subject' }),
278278
_diagnostics: { valid: true },
279279
_packageId: 'com.objectstack.auth',
280-
_provenance: { source: 'code' },
280+
// [#16152] Was `{ source: 'code' }` — an object, where
281+
// `MetadataProvenanceSchema` is `z.enum(['package','org','env-forced'])`.
282+
// It was never spec-legal; the blanket `_` sweep deleted it before the
283+
// parse could say so, which is the silent swallow this card removes.
284+
// Corrected to the spelling the rest of the repo's fixtures use.
285+
_provenance: 'package',
281286
},
282287
}));
283288
const { engine } = await boot({ protocol });

0 commit comments

Comments
 (0)