requery
                                
                                 requery copied to clipboard
                                
                                    requery copied to clipboard
                            
                            
                            
                        Initial test suite
- [ ] Query builder -- any non-trivial transformations
- [ ] Query rendering
- [ ] Postgres
- [ ] Sqlite3
 
- [ ] Create/Retrieve
- [ ] Postgres
- [ ] SQLite3
 
It seams snapshot testing should give basic test coverage with little effort π
Hmm, what did you have in mind? I'm not familiar with that approach, although I have some theories π
It would be basicly constructing examples of queries, rendering them and dumping into snapshot. You can verify them by hand just by looking or using some sql validator. You have snapshots in repo all the time and after every change you verify agains snapshots if you have some unwanted regressions.
In Jest documentation itβs mentioned for UI but our usecase it also makes sense: https://jestjs.io/docs/en/snapshot-testing