react-native-nitro-sqlitereact-native-nitro-sqlite/mockFunctions
resetAllDatabases
TypeScriptSource files: TypeScript
resetAllDatabases(): void
Close all mock connections and remove every temporary database and sidecar file.
Call after awaiting all async work, for example in a test's afterEach hook.
Existing connections and prepared statements cannot execute after a reset.
Returns
void
Throws
If any connection still has running or queued work. No connections are closed when this check fails, so await that work and retry the reset.