Skip to content

test: redirect stderr EnvironmentWithNoESMLoader

This commit adds a suggestion to redirect stderr for EnvironmentTest.EnvironmentWithNoESMLoader.

The motivation for this is that currently this tests prints the following error (which is expected):

vm:module(0):1
globalThis.importResult = import("")
^

Error: Not supported
 at vm:module(0):1:1
 at SourceTextModule.evaluate (node:internal/vm/module:229:23)
 at node:embedder_main_12:1:328
 at processTicksAndRejections (node:internal/process/task_queues:93:5)

It might not be obvious which test caused this error just by looking at the output above and it would be nice if it was not displayed.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading