We use TypeScript both on the front end and the server functions. We come from the world of Ruby on Rails and Clean Code development and are used to unit tests. So we implemented them here. too. However, it turned out that this involves a lot of manual mocking. While this works, it seems like a huge overhead which could be abstracted away if some kind of emulator for Appwrite would be provided. Is there any such implementation? I think of something like the Firebase Local Emulator Suite (see: https://firebase.google.com/docs/emulator-suite).
At the moment we use Vitest.
you could spin up an appwrite instance to test against
Recommended threads
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...