From fdc626e442cff16f8bfa110849a698fbdc23bbf6 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Thu, 7 May 2020 10:15:15 -0400 Subject: [PATCH] module: Test that code still runs when loader is in place --- test/message/esm_loader_success.mjs | 4 ++++ test/message/esm_loader_success.out | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 test/message/esm_loader_success.mjs create mode 100644 test/message/esm_loader_success.out diff --git a/test/message/esm_loader_success.mjs b/test/message/esm_loader_success.mjs new file mode 100644 index 00000000000000..cb49413f681f2c --- /dev/null +++ b/test/message/esm_loader_success.mjs @@ -0,0 +1,4 @@ +// Flags: --experimental-loader ./test/fixtures/es-module-loaders/transform-source.mjs +import '../common/index.mjs'; +import { message } from '../fixtures/es-modules/message.mjs'; +console.log(message); diff --git a/test/message/esm_loader_success.out b/test/message/esm_loader_success.out new file mode 100644 index 00000000000000..be5f9918d97089 --- /dev/null +++ b/test/message/esm_loader_success.out @@ -0,0 +1,3 @@ +(node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time +(Use `node --trace-warnings ...` to show where the warning was created) +A MESSAGE