Skip to content
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

[Bug Report] Run unit test issue: when I run unit test, it shows: Cannot read property 'split' of undefined #9279

Closed
niboac opened this issue Jan 15, 2018 · 9 comments

Comments

@niboac
Copy link

niboac commented Jan 15, 2018

Element UI version

2.0.11

OS/Browsers version

MAC / chrome

Vue version

2.5.13

Reproduction Link

https://github.com/niboac/vue-element-test

Steps to reproduce

Clone this repro: https://github.com/niboac/vue-element-test, then run: npm install & npm run unit, test this project.

What is Expected?

Expect NO error.

when I remove the directive "v-loading", it has no error. so I think the bug is from v-loading.

What is actually happening?

It shows a error:
/Users/cb/GitHub/vue-element-test-issue/node_modules/vue/dist/vue.runtime.common.js:6903
var transitionDelays = styles[transitionProp 'Delay'].split(', ');
^

TypeError: Cannot read property 'split' of undefined
at getTransitionInfo (/Users/cb/GitHub/vue-element-test-issue/node_modules/vue/dist/vue.runtime.common.js:6903:58)

@industral
Copy link

confirm. have same issue. can be reproduced when doing tests in loop. Occurs time to time.

@adin234
Copy link

adin234 commented Jul 9, 2018

so, any news?

@industral
Copy link

@adin234 I created PR for that vuejs/vue#8281, but looks like nobody interested on it. Please vote for it, so it can be promoted into vuejs

@adin234
Copy link

adin234 commented Jul 9, 2018

so do we need to use a different fork of vue for the tests to work? :(

@industral
Copy link

ideally, wait until they merge it... Unfortunately I can see just tones of PRs in a queue..

@adin234
Copy link

adin234 commented Jul 11, 2018

so no other choice than to use a fork then. thanks for your work, im using it now @industral :)

@stale
Copy link

stale bot commented Jul 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 11, 2019
@adin234
Copy link

adin234 commented Jul 11, 2019

vuejs/vue#8281

PR is merged so i think thin can be closed

@stale stale bot removed the stale label Jul 11, 2019
@stale
Copy link

stale bot commented Jul 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 11, 2020
@stale stale bot closed this as completed Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants