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
There are so many referenced files that are not in evidence.
Directly after the preface says that we would create a test component to test the context, there are references to a Parent component and OriginalParentComponent that exit somewhere else?
The examples are not provided with file names, but then are referenced in the final test source as if we knew what the filenames were somehow.
One file has setContext, while the other has getContext, but only one of them is referenced as ContextTest... ?
setContext is imported from svelte, but getContext is not?
Feeling very lost.
This is my first attempt at writing a test in svelte, and I'm clearly in way over my head, but I think users like me are a target for this documentation, so I hope sharing my confusion can help improve the docs!
Points of confusion:
Parent
component andOriginalParentComponent
that exit somewhere else?setContext
, while the other hasgetContext
, but only one of them is referenced asContextTest
... ?setContext
is imported fromsvelte
, butgetContext
is not?Feeling very lost.
This is my first attempt at writing a test in svelte, and I'm clearly in way over my head, but I think users like me are a target for this documentation, so I hope sharing my confusion can help improve the docs!
ref: https://www.sveltesociety.dev/recipes/testing-and-debugging/unit-testing-svelte-component (bottom of page, final section)
The text was updated successfully, but these errors were encountered: