get-convex / convex-test

Testing harness for pure-JS Convex tests
Apache License 2.0
3 stars 1 forks source link

Complete initial implementation #1

Closed xixixao closed 3 months ago

xixixao commented 3 months ago

Includes:

xixixao commented 3 months ago

Curious about why vitest vs. jest (I don't feel too strongly but have mainly used jest).

Vitest is so much better. I switched it when I ran into some Jest issue, maybe with timers, but the whole DevX for Vitest is way better.

Where did you source the tests? Running as many of our isolate tests, js integration tests, and maybe even smoke tests against this could be a pretty decent way of catching inconsistencies.

I wrote them. I quite like them actually, our existing test suites are somewhat of a mess, and ofc test lots of behaviors this mock doesn't have. But I think this suite will be great in case people ask "what's the syntax for X"?

Would love to link to related backend code where possible and to leave explicit comments / TODOs on things we're not implementing correctly (like ID format)

This would be nice but I might leave it for backlog (or after merge you could take a stab, it would take me a while to search for the backend implementations)