While having basic test coverage for the major happy paths already, there is a lot to test for unhappy paths.
We should add tests for the following scenarios. This list, of course, is not exhaustive.
- [x] While querying repeatedly, disconnecting and connecting the db.
- [x] While querying repeatedly, delete the query engine binary.
- [x] Delete the query engine binary first, then try to start the client.
- [x] Set wrong chmod on the query engine binary and try to start it.
- [x] Corrupt the query engine binary, so it's not executable, then try to start it.
- [x] Try to query a table that doesn't exist.
- [x] Table exists, but column doesn't.
- [x] Try to query a table, where a column has a different type than provided in the
schema.prisma file.
- [x] Try to query a related field of a required relation, while the related node doesn't exist in the database.
- [x] Query 100k items with SQLite to get to the variable limit in queries we generate.
Most important ones for now:
1., 6., 6.5, 7.
kinimprovement
tectypescript
tests
Most helpful comment
Done!