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
yarn run v1.6.0
$ jest
FAIL test/Foo.spec.js
Foo.vue
✕ it should render slot content (6ms)
● Foo.vue › it should render slot content
[vue-test-utils]: slots[key] must be a Component, string or an array of Components
at throwError (node_modules/@vue/test-utils/dist/vue-test-utils.js:11:9)
at Array.forEach (<anonymous>)
at Object.<anonymous> (test/Foo.spec.js:7:40)
at new Promise (<anonymous>)
at <anonymous>
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 4.221s
Ran all test suites.
error Command failed with exit code 1.
Looks like isValidSlot assumes a simple component object definition, not a Vue.extend instance
The text was updated successfully, but these errors were encountered:
Version
1.0.0-beta.20
Reproduction link
https://github.com/nekosaur/vue-test-utils-repro
Steps to reproduce
Run
yarn test
What is expected?
Test should pass
What is actually happening?
Test does not pass
Looks like
isValidSlot
assumes a simple component object definition, not a Vue.extend instanceThe text was updated successfully, but these errors were encountered: