You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get some test errors after updating @vue/vue3-jest to 27.x. Before with vue-jest^5.0.0-0 all tests runs without problems. After update it seems that the mock functions outside the test functions has no effect anymore with some expect matchers e.g. toBeCalledWith or toBeCalledTimes.
We were seeing a similar issue for trigger('focus') after updating to Jest v27.
For us the fix described in vuejs/vue-test-utils#1932 helped, i. e. element.dispatchEvent(new Event('click')) instead of element.trigger('click') could help in your case.
Uh oh!
There was an error while loading. Please reload this page.
I get some test errors after updating
@vue/vue3-jest
to 27.x. Before withvue-jest
^5.0.0-0 all tests runs without problems. After update it seems that the mock functions outside the test functions has no effect anymore with some expect matchers e.g.toBeCalledWith
ortoBeCalledTimes
.Code Snippet
Error log
package.json
jest.config.js
I didn't find any solutions in docs and issues. Has someone an idea why the tests fails after update?
The text was updated successfully, but these errors were encountered: