mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 11:06:06 +00:00
6010694c08
resetTestDb needs the SQLite snapshot mock's better-sqlite3 handle, so a suite resetting with it can only run on SQLite. resetDatabase takes the booted app's ORM and leaves the same state on SQLite and Postgres: every table but the kept ones emptied (read from the live schema), sequences left counting, seedDefaults' rows back through the ORM, and on the first call the users sequence restarted as the snapshot mock normalises it.