Skip to content

Commit

Permalink
fix: match header in nock
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Sep 25, 2024
1 parent 75794ef commit 0193b17
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,7 +53,11 @@ export const createTestApp = async (
.reply(200, { recovery_link: 'https://example.com' })
.persist()

nock(config.authAdminApiUrl).post('/').reply(200).persist()
nock(config.authAdminApiUrl)
.post('/')
.matchHeader('Accept', '*/*')
.reply(200)
.persist()
logger.info({ nocks: nock.activeMocks() }, 'active mocks')

const app = new App(container)
Expand Down

0 comments on commit 0193b17

Please sign in to comment.