wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
12.73k stars 1.13k forks source link

Re-evaluate Wasp's testing story #2049

Open Martinsos opened 1 month ago

Martinsos commented 1 month ago

Before, it wasn't easy to test external Wasp code due to how Wasp projects were organized. Which is why we added special support for writing tests for frontend, to enable that. We wanted to do the same thing for backend, but didn't yet get there.

Now, after big Wasp restructuring, Wasp projects are proper npm packages with package.json and defining unit/integration tests for user's code is easier and they have quite some flexibility -> so no special support from our side is needed anymore for users to be able to write tests for frontend/backend.

We also added e2e tests to multiple projects, including open-saas, so those can be also set up independently of Wasp even.

Things we should do: