vobyjs / voby

A high-performance framework with fine-grained observable-based reactivity for building rich applications.
https://voby.dev
MIT License
865 stars 22 forks source link

voby-testing-library #38

Open solenopsys opened 3 months ago

solenopsys commented 3 months ago

I tried testing Voby with easy-dom and bun.sh, but events were not working.

After I tried testing with @testing-library/dom and bun.sh, it worked fine.

I needed a testing library for Voby.

Example for solid: https://github.com/solidjs/solid-testing-library/

fabiospampinato commented 3 months ago

I have no experience with this. If somebody wants to implement it we can bring it under the vobyjs github org 👍

solenopsys commented 3 months ago

I have started working here: https://github.com/solenopsys/converged-test. The code currently contains many unnecessary elements and requires substantial time for deep refactoring.

fabiospampinato commented 3 months ago

Is that supposed to be the equivalent for Voby of "solid-testing-library"? I'm not sure how these things should be written, I think it would probably be good with the rest of the ecosystem on this.

solenopsys commented 3 months ago

Yes, I created it for my project and later forked voby-testing-library after completing it. The most important aspect of https://github.com/solidjs/solid-testing-library/ is the tests. I have plans to refactor the tests and adapt them for voby. Regarding the API, I need to give it some thought.