Skip to content
Discussion options

You must be logged in to vote

I guess the question is -- What are you actually testing here? It appears that you are testing whether the markdown crate works properly, and testing whether leptos works properly, and trying to test each one of those by whether its HTML output is equal to the other one... But neither of those is necessarily in the scope of your app to control, i.e., you're just testing code you didn't write anyway.

I agree that testing based on the HTML output is relatively difficult, in part because hydration keys need to be unique (so generating the same thing twice will not and should not give identical results, unless you reset the hydration keys in between)

It is possible to do it using something like

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dustypomerleau
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants