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
Hello.
I have a project, that has Vue and Jest written in typescript.
Encountered an issue, that Jest fails with Cannot find module 'vue-async-computed-decorator'. I am relatively new to unit testing and can't figure out if this is my fault with Jest configuration, or something wrong with computed-decorator.
@frck006 Unfortunately, no. Checked once more - problem still persists with all packages up to date. Since I posted this issue, I stopped doing unit tests in hopes that this issue will be resolved.
My workaround is adding to jest.config.js to moduleNameMapper this line 'vue-async-computed-decorator': '<rootDir>/node_modules/vue-async-computed-decorator/dist/index.js'
My workaround is adding to jest.config.js to moduleNameMapper this line 'vue-async-computed-decorator': '<rootDir>/node_modules/vue-async-computed-decorator/dist/index.js'
This, along with const localVue = createLocalVue(); localVue.use(AsyncComputed); in the wrapper fixed my issue. Thanks !
Hello.
I have a project, that has Vue and Jest written in typescript.
Encountered an issue, that Jest fails with
Cannot find module 'vue-async-computed-decorator'
. I am relatively new to unit testing and can't figure out if this is my fault with Jest configuration, or something wrong with computed-decorator.Set up a reproduction repo for this case:
https://github.com/Threnos/jest-vue-test-utils-vue-async-computed-decorator
Steps for reproduction:
Clone the repo and run
test:unit
.The text was updated successfully, but these errors were encountered: