Skip to content

Commit

Permalink
reset test state early
Browse files Browse the repository at this point in the history
  • Loading branch information
kneth committed Aug 16, 2023
1 parent 9d63c68 commit af33297
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration-tests/tests/src/utils/close-realm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export function closeRealm(realm: Realm, deleteRealmFile = true, clearTestState
const config = deriveConfig(realm);
realm.close();

if (clearTestState) {
Realm.clearTestState();
}

if (deleteRealmFile) {
Realm.deleteFile(config);
}
Expand Down

0 comments on commit af33297

Please sign in to comment.