Replies: 2 comments 4 replies
-
|
What page of the ZenStack docs are you reading? It says Have you tried this? |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Btw, I'll close the discussions feature on this repo soon, so that we can consolidate channels to github issues + discord. Too many channels to watch 🤣 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
🌠 🌠 🌠
Yes, there is bun:sqlite ! But unfortunately, its api doesn't seem working with kysely.
Test it, and you will see that you can't execute queries from the ZenstackClient (they returns empty results), though the raw query from the same shared bun:sqlite instance do return some results.
So, when you are running with bun, it seems you just can't use sqlite for your integration tests.
Unfortunately, the docs on the zenstack website are not correct when they state you can use better-sql3 with bun. That's incorrect. Even if you can add it to bun, it won't load on import and will fail with an error message suggesting you to use bun:sqlite (and linking to oven-sh/bun#4290 )
I wonder what setup can work for fast (ideally in-memory) integration tests involving zenstack client.
I've not yet looked on how the zenstack team is testing, and it could probably be a good way to go.
If you use bun, what are you using ? Containerized db ? Complete test db instance ? Other ?
🌠 🌠 🌠
Beta Was this translation helpful? Give feedback.
All reactions