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 know an issue isn't the best place for this, but I thought it should be documented somewhere.
Vue-timers was working as a global import or mixin in my app. However, it completely broke all my Jest tests. The errors thrown varied from TypeError: Cannot read property 'setData' of undefined to SyntaxError: Unexpected token export depending on what I tried to fix it.
I finally realized that I needed to update my jest.config.js from:
This is probably obvious for someone with more Jest experience, but I figured I should document what I found since it took me way too long to track down.
The text was updated successfully, but these errors were encountered:
I know an issue isn't the best place for this, but I thought it should be documented somewhere.
Vue-timers was working as a global import or mixin in my app. However, it completely broke all my Jest tests. The errors thrown varied from
TypeError: Cannot read property 'setData' of undefined
toSyntaxError: Unexpected token export
depending on what I tried to fix it.I finally realized that I needed to update my
jest.config.js
from:to
This is probably obvious for someone with more Jest experience, but I figured I should document what I found since it took me way too long to track down.
The text was updated successfully, but these errors were encountered: