From 0193b178a7f30b4b4cfd18557226aafe87d3b88f Mon Sep 17 00:00:00 2001 From: Nathan Lie Date: Wed, 25 Sep 2024 11:06:34 -0700 Subject: [PATCH] fix: match header in nock --- packages/backend/src/tests/app.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/tests/app.ts b/packages/backend/src/tests/app.ts index dda3a21c6b..e6a610c4ee 100644 --- a/packages/backend/src/tests/app.ts +++ b/packages/backend/src/tests/app.ts @@ -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)