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