From 14d66a4e2893335ae89ed083029443342dc9633d Mon Sep 17 00:00:00 2001 From: jamil314 Date: Fri, 20 Dec 2024 13:16:15 +0600 Subject: [PATCH] fix: import node from node-fetch --- e2e/helpers.ts | 1 + e2e/testcases/birth/helpers.ts | 1 + e2e/testcases/death/helpers.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/e2e/helpers.ts b/e2e/helpers.ts index 01e835b9a..8f37aa543 100644 --- a/e2e/helpers.ts +++ b/e2e/helpers.ts @@ -8,6 +8,7 @@ import { } from './constants' import { format, parseISO } from 'date-fns' import { isArray, random } from 'lodash' +import fetch from 'node-fetch' export async function login(page: Page, username: string, password: string) { const token = await getToken(username, password) diff --git a/e2e/testcases/birth/helpers.ts b/e2e/testcases/birth/helpers.ts index 0ade5cadb..a2f83fe8c 100644 --- a/e2e/testcases/birth/helpers.ts +++ b/e2e/testcases/birth/helpers.ts @@ -13,6 +13,7 @@ import { } from './queries' import { random } from 'lodash' import { generateRandomSuffix } from '../../helpers' +import fetch from 'node-fetch' export type BirthDetails = { informant: { diff --git a/e2e/testcases/death/helpers.ts b/e2e/testcases/death/helpers.ts index 425a91076..806b6855e 100644 --- a/e2e/testcases/death/helpers.ts +++ b/e2e/testcases/death/helpers.ts @@ -15,6 +15,7 @@ import { GET_DEATH_REGISTRATION_FOR_REVIEW } from './queries' import { random } from 'lodash' +import fetch from 'node-fetch' export type DeathDeclarationInput = { deceased?: {