Closed vandriesh closed 3 years ago
Oh yeah, I had the same problem. It does tell you what to do, kinda:
To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
In other words: you need to tell jest to transform the vuex-class-modules dependency with babel, because it provides esm format only. When I hit this problem I could not find out how to do it in the context of vue-cli though...
Related; there was an effort to add commonjs support: https://github.com/gertqin/vuex-class-modules/pull/26
Now that commonjs is supported, this issue should be solved, right @bodograumann ?
I would think so. @vandriesh can you please update to version 1.2.0 and retry the tests?
@bodograumann I'm sorry - I've moved a long time ago from the project where I used vue. - next time... (will close for now)
thanks everyone! and a Happy New Year!
after deciding to use vuex-class-modules this happened :
● Test suite failed to run
the app works as expected vue,typescript,vuex (default generated by vue cli)