How to reproduce in this repo: Change `Script` to `ESModule` in: https://github.com/scala-js/scala-js-js-envs/blob/01b0e95fd55d8b941c574ec4b5225e39421d067a/js-envs-test-kit/src/main/scala/org/scalajs/jsenv/test/kit/TestKit.scala#L161 The test suite will now hang for NodeJSEnv.