this repo has no description
1; Integration tests for preloaded package detection
2; Run with: dune build @runintegration
3
4(executable
5 (name integ_worker)
6 (modes byte js)
7 (modules integ_worker)
8 (link_flags (-linkall))
9 (preprocess (pps js_of_ocaml-ppx))
10 (js_of_ocaml
11 (javascript_files ../../lib/stubs.js)
12 (flags --effects=disabled --toplevel +toplevel.js +dynlink.js))
13 (libraries js_top_worker-web))
14
15; Generate universe with yojson (preloaded) and stringext (not preloaded)
16(rule
17 (targets (dir _universe))
18 (action
19 (run jtw opam -o _universe yojson stringext)))
20
21; Build alias - compiles everything needed for integration tests
22(alias
23 (name integration)
24 (deps
25 integ_worker.bc.js
26 integ_test.html
27 test_findlib_index.json
28 run_integ.js
29 _universe
30 (source_tree crc_conflict)))
31
32; Run alias - executes the Playwright tests
33(rule
34 (alias runintegration)
35 (deps
36 integ_worker.bc.js
37 integ_test.html
38 test_findlib_index.json
39 run_integ.js
40 _universe
41 (source_tree crc_conflict))
42 (action
43 (progn
44 (echo "Running integration tests with Playwright...\n")
45 (run node run_integ.js))))