mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 11:06:06 +00:00
e2b0910e28
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.