Closed marcosmoura closed 7 years ago
Temporary solution is to run transition tests in the browser, because they don't error in there. You can use this boilerplate as an example - https://github.com/eddyerburgh/avoriaz-karma-mocha-example
I've had a quick look at the error in Vue, in this function - https://github.com/vuejs/vue/blob/dev/src/platforms/web/runtime/transition-util.js#L113 - styles['animation Delay'] is undefined, so when the code tries to split undefined it errors.
I'm not sure why, but I think it's probably due to the stylesheet implementation/ some other function in browserEnv (jsDOM).
Transitions haven't been added to JSDOM yet - https://github.com/tmpvar/jsdom/issues/1781.
You'll need to run transition tests in the browser
I'm using AVA with Avoriaz. Both on latest version. If the wrapper tag is a functional component, like
<transition>
, Avoriaz throws an error:My component:
My test case:
What do you think that could be?