Results 508 comments of hhugo

Here is what I think is happening just by reading this thread. ```ocaml let () = Js.export "somefun" some_function ``` This will just export the function to js and continue...

In general, you want this code to survive JS code generation so that you can run test in JavaScript. You should be able to drop the tests with the following...

You also need to build with ```--profile release``` dune flag. Otherwise, separate compilation is used for JavaScript compilation and no cross module dead code happen

Or you can set `(js_of_ocaml (compilation_mode whole_program))` in dune env. See https://dune.readthedocs.io/en/stable/reference/dune/env.html#env

I can't reproduce. I see the expect_test being dropped when use what has been mentioned in the issue. Can you share some code ? if you're using dune, you should...

It could be a regression in ppx_inline_test or ppx_expect v0.17.0

Could you try to downgrade to v0.16.0 (assuming you are indeed using v0.17.0)