success! shadow-cljs watch esm build + vitest, @testing-library
I'm going to share my settings with minimal repository. ^^
Interested!
@taehee.kim I was just wondering if you had time to create a repository with the settings?
Haha it's true. But our CTO appreciate the idea. It can be this weekend...
Great news. Looking forward to checking it out 👍
Now we call it "siheom" (시험, the Korean word for test)
That looks nice!
Playwright like testing-library wrapper. No manual await. No get vs query vs find. Just role and name. Test as data
We use vitest but you can use it with any test library.
I would like to try vitest, but I can’t find the way to configure it with reagent.
I just compile cljs into esm with shadow-cljs watch
At the moment I use karma with my small wrapper on top of react-testing-library https://github.com/olecve/react-testing-library-cljs
And vitest watch the compile output
but not super happy with karma test runner
I use vitest browser mode. It is fast and we don't need browser api mocking (history, media query etc...)
We run 20 component tests in 2.4s (m2 mac)
Is “siheom” something you use internally or is it available as a library?
Internally. But we will publish it as an open source library
As I said, our CTO wants to contribute to clojure ecosystem.
Oh, I was a bit confused. I thought you were talking about the project with the test configuration example.
Oh okay.
I will share my vitest and testing library setup this weekend (probably)
We will share our library soon.
Yeah, I really like that the code looks similar to playwright 👍 I’ll it give a try for sure 🙂