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
* fix(#119): allow routes vue-router creation through routes param from both jest and mocha
* add test to check vue-router require for mocha users
* fix Vue Router require to be compatible with CommonJS
* delete deprecated test
Describe the bug
When trying to use the router option in a mocha + chai project, it fails with
TypeError: VueRouter is not a constructor
To Reproduce
Run unit tests:
https://github.com/FCalabria/testing-library-mocha
The same project with jest, works perfectly.
Related information:
@testing-library/vue
version: 4.1.0Vue
version: 2.6.10Changing the way to import the library fixes the bug, but breaks it for jest
The text was updated successfully, but these errors were encountered: