Closed shinokada closed 2 years ago
@shinokada
Thanks for the question! If you want to just use playwrite, the other testing libraries are unnecessary😄
The reason I installed those is simply because I just wanted to try out different testings methods(playwrite and jest/svelte-testing-library) for svelte components to see which one feels right for me!
ありがとうございます。 How do you find them? Which one is better? I'd like to add tests to Flowbite-Svelte UI components. (It has timeline components too.)
@shinokada
How do you find them?
Good old Googling led me to those two ways(Playwrite and svelte-testing-library)
Which one is better?
The conclusion I came to was that I would use svelte-testing-library for unit-testing groups of components and use playwrite for EtoE testing.
I'd like to add tests to Flowbite-Svelte UI components.
This looks awesome!!(I stared the repo ⭐⭐) I unfortunetly wrote only the bare minimum(not even) tests for this component library....
I think the MUI's tests for their timeline components can be a great example for ur use case. But they use enzyme which tests components in a different way.
https://github.com/mui/material-ui/blob/master/packages/mui-lab/src/Timeline/Timeline.test.tsx
Your
package.json
has all testing library for jest. Do you need them when you runplaywright test
?