aboutsummaryrefslogtreecommitdiff
path: root/test/js/dune
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/dune
parent3c935560874956d1b2d92024d09544b749a707b2 (diff)
feat: add custom rule to install npm polyfills for node testing
Diffstat (limited to 'test/js/dune')
-rw-r--r--test/js/dune9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/js/dune b/test/js/dune
index d919a1e..83a2e60 100644
--- a/test/js/dune
+++ b/test/js/dune
@@ -2,4 +2,11 @@
(name websockets_hello)
(libraries portal_ws lwt js_of_ocaml)
(modes js)
- (preprocess (pps js_of_ocaml-ppx)))
+ (preprocess (pps js_of_ocaml-ppx))
+ (js_of_ocaml
+ (javascript_files polyfill.js)))
+
+(rule
+ (alias npm)
+ (deps package.json package-lock.json)
+ (action (system "npm ci")))