Skip to content

Commit

Permalink
Refactor realm tests to support permissioned realms
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenwerk committed Jan 29, 2024
1 parent 60419a4 commit 7126a05
Show file tree
Hide file tree
Showing 2 changed files with 1,679 additions and 1,054 deletions.
12 changes: 0 additions & 12 deletions packages/realm-server/tests/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,6 @@ export async function runTestRealmServer(
};
}

export async function runTestRealmServer_old(
loader: Loader,
dir: string,
flatFiles: Record<string, string | LooseSingleCardDocument> = {},
testRealmURL: URL,
) {
let testRealm = await createRealm(loader, dir, flatFiles, testRealmURL.href);
await testRealm.ready;
let testRealmServer = new RealmServer([testRealm]);
return testRealmServer.listen(parseInt(testRealmURL.port));
}

export function setupCardLogs(
hooks: NestedHooks,
apiThunk: () => Promise<typeof CardAPI>,
Expand Down
Loading

0 comments on commit 7126a05

Please sign in to comment.