Closed timgent closed 2 weeks ago
This usually happens if you are using mocking libraries that replace modules. Is that the case? If so, can you please try updating them to the latest? If the issue persists, can you please provide a minimal application that reproduces the error?
Thanks, bumping the version of Mimic seems to resolve this
Elixir and Erlang/OTP versions
Erlang/OTP 26 [erts-14.2.5.1] [source] [64-bit] [smp:11:11] [ds:11:11:10] [async-threads:1] [jit]
Elixir 1.17.3 (compiled with Erlang/OTP 26)
Operating system
MacOS - 14.7.1 (23H222)
Current behavior
Running a test which pattern matches a date I get the below error. The error occurs when running
mix test
but not when running just this individual test.mix test
works fine if I comment out this testExpected behavior
The test should work!