diff --git a/test/blackbox-tests/test-cases/melange/flags-for-emission.t b/test/blackbox-tests/test-cases/melange/flags-for-emission.t new file mode 100644 index 00000000000..cc89ce11cd4 --- /dev/null +++ b/test/blackbox-tests/test-cases/melange/flags-for-emission.t @@ -0,0 +1,32 @@ +Test compile_flags are passed to JS file emission + + $ cat > dune-project < (lang dune 3.13) + > (using melange 0.1) + > EOF + + $ cat > main.ml < let () = Js.log "hello" + > EOF + + $ cat > dune < (melange.emit + > (target output) + > (emit_stdlib false) + > (modules main) + > (compile_flags :standard --mel-no-version-header)) + > EOF + + $ dune build @melange + +File is generated with the "Generated by Melange" header even though we +specified the opposite in flags + + $ cat _build/default/output/main.js + // Generated by Melange + 'use strict'; + + + console.log("hello"); + + /* Not a pure module */