Merge pull request #225 from davidmonterocrespo24/fix/spice-custom-chip-fixture-check
test(spice): exclude custom-chip from the static-fixture catalog check
This commit is contained in:
commit
06a3fef61a
|
|
@ -222,9 +222,18 @@ describe('PASSIVE_PRESETS — preset variants share their base mapper', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Mappers whose output depends on live runtime state rather than the static
|
||||
// component (pins + properties) a fixture can describe. `custom-chip` emits its
|
||||
// SPICE sources from getChipDrivenPins(comp.id) — the chip's currently-driven
|
||||
// output pins — so a static fixture always yields null. It is exercised by the
|
||||
// chip-bus integration tests instead, not this catalog harness.
|
||||
const RUNTIME_STATE_MAPPERS = new Set(['custom-chip']);
|
||||
|
||||
describe('componentToSpice — catalog completeness', () => {
|
||||
it('every mapped metadataId has a test fixture', () => {
|
||||
const missing = mappedMetadataIds().filter((id) => !MINIMAL_FIXTURES[id]);
|
||||
const missing = mappedMetadataIds().filter(
|
||||
(id) => !MINIMAL_FIXTURES[id] && !RUNTIME_STATE_MAPPERS.has(id),
|
||||
);
|
||||
expect(missing, `Missing fixtures for: ${missing.join(', ')}`).toEqual([]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue