Skip to content

Commit

Permalink
fix: mock auth admin gql call
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Sep 25, 2024
1 parent 83342a9 commit 61e7fec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/backend/src/tests/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export const createTestApp = async (
.reply(200, { recovery_link: 'https://example.com' })
.persist()

nock(config.authAdminApiUrl)
.post('')
.reply(200, { data: { createAuthTenant: { success: true } } })
.persist()

const app = new App(container)
await start(container, app)

Expand All @@ -66,7 +71,6 @@ export const createTestApp = async (
}).then((res) => res.data)
})
.persist()

const knex = await container.use('knex')

const httpLink = createHttpLink({
Expand Down

0 comments on commit 61e7fec

Please sign in to comment.