(tests
 (names error1 error2 error3)
 (modes js wasm)
 (foreign_stubs
  (language c)
  (names named_value_stubs))
 (js_of_ocaml
  (javascript_files runtime.js))
 (enabled_if
  (= %{profile} dev))
 (action
  (pipe-outputs
   (progn
    (with-accepted-exit-codes
     2
     (run node %{test}))
    (with-accepted-exit-codes
     2
     (run node %{test} unregister)))
   (run cat)))
 (libraries))
