Spirolo

data-layer-mock

An integration test that mocks your own data layer.

hiddenDROPPED

No decided findings.

Shown with --all. Never gates, even with an override.

Hidden by default

Its review dropped it: it did not fire on the open-source corpus.

It still runs: spirolo check --all shows its findings, labelled, and it never fails the build, even with an override.

What it reports

An integration or MSW test module-mocks a module you declared as your data layer, so it passes on the mock's canned answers. It proves the mock, not the flow it names.

What to do

Remove the module mock and let the data layer run, mocking the network beneath it instead (with MSW, for example).

What it reads

The rule needs dataLayer and, optionally, dataLayerScope in the config.

spirolo explain data-layer-mock prints the same claim and status from your installed binary.

On this page