Skip to content

Commit

Permalink
Fix emulator port
Browse files Browse the repository at this point in the history
  • Loading branch information
maneesht committed Jan 13, 2025
1 parent 8d71140 commit bffe9dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/data-connect/test/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export const app = initializeApp({
// Seed the database to have the proper fields to query, such as a list of tasks.
export function initDatabase(): DataConnect {
const instance = getDataConnect(getConnectionConfig());
connectDataConnectEmulator(instance, 'localhost', Number(EMULATOR_PORT));
if(EMULATOR_PORT !== undefined) {
connectDataConnectEmulator(instance, 'localhost', Number(EMULATOR_PORT));
}
return instance;
}

0 comments on commit bffe9dd

Please sign in to comment.