I am working on a Vue.js/Nuxt.js project using Vitest for testing.
I need to test that a method has been called by another method.
I attempt to spy on the called method, but I receive an « AssertionError: expected "getOperatorValue" to be called at least once », even though I can observe that it is being called during the test execution (console log inside).
Any ideas?
Here the code where you can have a look of methods and associated tests: https://stackblitz.com/edit/vitest-dev-vitest-nkdpmw