Testing Page data #10226
Unanswered
jasonbhuang
asked this question in
Q&A
Testing Page data
#10226
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys I can't seem to find any clear info on how to unit test the Page data object, when I run vitest it starts with saying it is not able to render 'data' just following a basic example shown here
https://kit.svelte.dev/docs/load
there is no way to get the data object to load property when running vitest, the application itself renders everything fine. Am I looking at this the wrong way what is the method used to test something straight forward like this?
Beta Was this translation helpful? Give feedback.
All reactions