; Integration tests for preloaded package detection ; Run with: dune build @runintegration (executable (name integ_worker) (modes byte js) (modules integ_worker) (link_flags (-linkall)) (preprocess (pps js_of_ocaml-ppx)) (js_of_ocaml (javascript_files ../../lib/stubs.js) (flags --effects=disabled --toplevel +toplevel.js +dynlink.js)) (libraries js_top_worker-web)) ; Generate universe with yojson (preloaded) and stringext (not preloaded) (rule (targets (dir _universe)) (action (run jtw opam -o _universe yojson stringext))) ; Build alias - compiles everything needed for integration tests (alias (name integration) (deps integ_worker.bc.js integ_test.html test_findlib_index.json run_integ.js _universe (source_tree crc_conflict))) ; Run alias - executes the Playwright tests (rule (alias runintegration) (deps integ_worker.bc.js integ_test.html test_findlib_index.json run_integ.js _universe (source_tree crc_conflict)) (action (progn (echo "Running integration tests with Playwright...\n") (run node run_integ.js))))