Skip to content

vue-test-utils v1.0.0-beta.22 broke my test #879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
joehecn opened this issue Jul 30, 2018 · 1 comment
Closed

vue-test-utils v1.0.0-beta.22 broke my test #879

joehecn opened this issue Jul 30, 2018 · 1 comment

Comments

@joehecn
Copy link

joehecn commented Jul 30, 2018

Version

1.0.0-beta.22

Reproduction link

joehecn/j#6

What is expected?

I expect that everything will still be working as it used to

What is actually happening?

I does not work. Raising this error:

TypeError: Cannot read property '$el' of undefined
      76 |     cloneStoreConfig.state.curGroupMd5 = 'md5'
      77 |     const store = createStore(cloneStoreConfig)
    > 78 |     const wrapper = mount(Chat, {
         |                     ^
      79 |       mocks: { $$worker, $router },
      80 |       store,
      81 |       localVue
      at VueComponent.mounted (node_modules/element-ui/lib/element-ui.common.js:9126:54)
      at callHook (node_modules/vue/dist/vue.runtime.common.js:2919:21)
      at Object.insert (node_modules/vue/dist/vue.runtime.common.js:4156:7)
      at invokeInsertHook (node_modules/vue/dist/vue.runtime.common.js:5958:28)
      at VueComponent.patch [as __patch__] (node_modules/vue/dist/vue.runtime.common.js:6177:5)
      at VueComponent.Vue._update (node_modules/vue/dist/vue.runtime.common.js:2658:19)
      at VueComponent.updateComponent (node_modules/vue/dist/vue.runtime.common.js:2786:10)
      at Watcher.get (node_modules/vue/dist/vue.runtime.common.js:3140:25)
      at new Watcher (node_modules/vue/dist/vue.runtime.common.js:3129:12)
      at mountComponent (node_modules/vue/dist/vue.runtime.common.js:2793:3)
      at VueComponent.Object.<anonymous>.Vue.$mount (node_modules/vue/dist/vue.runtime.common.js:7997:10)
      at mount (node_modules/@vue/test-utils/dist/vue-test-utils.js:5543:21)
      at Object.test (__tests__/view/Chat.test.js:78:21)

Here's the full test code: https://travis-ci.org/joehecn/j/builds/409703349?utm_source=github_status&utm_medium=notification

@vue-bot
Copy link

vue-bot commented Jul 30, 2018

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants