From f179d6e09fa573a2a1f1371c749ecd67b3c1fee9 Mon Sep 17 00:00:00 2001 From: nprimo Date: Wed, 2 Nov 2022 17:59:43 +0000 Subject: [PATCH] feat(tests): update script to use fetch in node tests --- js/tests/test.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/js/tests/test.mjs b/js/tests/test.mjs index 6f5ede76..5c6c860d 100644 --- a/js/tests/test.mjs +++ b/js/tests/test.mjs @@ -8,6 +8,7 @@ import http from 'http' import fs from 'fs' global.window = global +global._fetch = fetch global.fetch = url => { // this is a fake implementation of fetch for the tester // -> refer to https://devdocs.io/javascript/global_objects/fetch