TypeError: Cannot read properties of undefined (reading ‘test’) – Vitest
Upon trying to setting up a test with vitest, an error is being raised with test()
:
Why does mock.results return an empty array after calling a mock function?
In attempting to mock a Math.floor call in Vitest, the test ends up raise an error: