test(runtime-core): test createSlots #115
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! I'd like to help with the test coverage of Vue 3, but I'm having some difficulty understanding how things work. I'm putting up this PR in the hopes of getting a push in the right direction on how to test some of this stuff. I started with
createSlots
, and the problem I'm running into is that I don't understand how to create a dummy Record to pass intocreateSlots
. I have tried looking through the other tests that create slots, such as https://github.com/vuejs/vue-next/blob/8133b3867ae3d67bbd05a8ca06c5659275bc5942/packages/runtime-core/__tests__/h.spec.ts#L31 which creates a Slot, but not a Record. I feel like I'm missing something obvious, but can't see what that might be. Could I have a little help understanding?Thank you.