Shampoo.Check.UnverifiedMoxExpect (shampoo v0.4.0)
View SourceBasics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of high and works with any version of Elixir.
Explanation
ETC-MOCK-004: Register Mox verification in setup or in each test that calls Mox.expect/3 or Mox.expect/4. Without verification, unmet expectations can pass silently.
Check-Specific Parameters
Use the following parameters to configure this check:
:verifying_case_templates
Modules that register Mox verification for every test using them.
This parameter defaults to [].
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.