Browse Source

feat(tests): update script to use fetch in node tests

pull/1526/head
nprimo 2 years ago committed by Niccolò Primo
parent
commit
f179d6e09f
  1. 1
      js/tests/test.mjs

1
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

Loading…
Cancel
Save