Back

Testing TypeScript

  • 0
  • Functions
  • Web
tbsvttr
21 Aug, 2023, 08:19

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.

TL;DR
The user is looking for a way to test TypeScript in their application and is currently using Vitest. They mention that they are currently manually mocking a lot of things, which they find to be a huge overhead. They are wondering if there is an emulator for Appwrite that could help with this.
Drake
21 Aug, 2023, 14:10

you could spin up an appwrite instance to test against

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more