aboutsummaryrefslogtreecommitdiff
path: root/test/js/polyfill.js
diff options
context:
space:
mode:
authorClombrong <clombrong@egregore.fun>2025-04-23 17:27:50 +0200
committerClombrong <cromblong@egregore.fun>2025-04-23 17:27:50 +0200
commit34f072dda231f0de4cfdcd86bfe921fcefc134fb (patch)
tree8630a3f75e71ef417f709560bf703b1dbc092c65 /test/js/polyfill.js
parent3c935560874956d1b2d92024d09544b749a707b2 (diff)
feat: add custom rule to install npm polyfills for node testing
Diffstat (limited to 'test/js/polyfill.js')
-rw-r--r--test/js/polyfill.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/js/polyfill.js b/test/js/polyfill.js
new file mode 100644
index 0000000..e394ec8
--- /dev/null
+++ b/test/js/polyfill.js
@@ -0,0 +1 @@
+global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;