diff options
Diffstat (limited to 'test/parallel/test-cli-eval.js')
-rw-r--r-- | test/parallel/test-cli-eval.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/parallel/test-cli-eval.js b/test/parallel/test-cli-eval.js index acf20bb77f..0d2ea48c06 100644 --- a/test/parallel/test-cli-eval.js +++ b/test/parallel/test-cli-eval.js @@ -274,3 +274,12 @@ child.exec( assert.ifError(err); assert.strictEqual(stdout, 'object\n'); })); + +// Assert that packages can be imported cwd-relative with --eval +child.exec( + `${nodejs} ${execOptions} ` + + '--eval "import \'./test/fixtures/es-modules/mjs-file.mjs\'"', + common.mustCall((err, stdout) => { + assert.ifError(err); + assert.strictEqual(stdout, '.mjs file\n'); + })); |