Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Commit f46476e

Browse files
committed
esm: rename tests for --input-type=auto
1 parent 9dbcc5b commit f46476e

17 files changed

+4
-4
lines changed

lib/internal/modules/esm/detect_type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function detectType(source, filename) {
2727
token.label !== '(' &&
2828
// Also ensure that the keyword we just saw wasn't an allowed use
2929
// of a reserved word as a property name; see
30-
// test/fixtures/es-modules/entry-type-auto-scope/
30+
// test/fixtures/es-modules/input-type-auto-scope/
3131
// cjs-with-property-named-import.js
3232
!(prevPrevToken && prevPrevToken.label === '.') &&
3333
token.label !== ':')

src/node_options.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void EnvironmentOptions::CheckOptions(std::vector<std::string>* errors) {
114114
}
115115
if (module_type != "commonjs" && module_type != "module" &&
116116
module_type != "auto") {
117-
errors->push_back("--entry-type must be "
117+
errors->push_back("--input-type must be "
118118
"\"module\" or \"commonjs\" or \"auto\"");
119119
}
120120
}

test/es-module/test-esm-entry-type-auto.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ expect('syntax-error-2.js', 'SyntaxError', true);
2424

2525
function expect(file, want, wantsError = false) {
2626
const argv = [
27-
require.resolve(`../fixtures/es-modules/entry-type-auto-scope/${file}`)
27+
require.resolve(`../fixtures/es-modules/input-type-auto-scope/${file}`)
2828
];
2929
const opts = {
3030
// TODO: Remove when --experimental-modules is unflagged
3131
env: { ...process.env,
32-
NODE_OPTIONS: '--experimental-modules --entry-type=auto' },
32+
NODE_OPTIONS: '--experimental-modules --input-type=auto' },
3333
maxBuffer: 1e6,
3434
};
3535
exec(process.execPath, argv, opts,

test/fixtures/es-modules/entry-type-auto-scope/ambiguous-with-import-expression.js renamed to test/fixtures/es-modules/input-type-auto-scope/ambiguous-with-import-expression.js

File renamed without changes.

test/fixtures/es-modules/entry-type-auto-scope/cjs-with-import-expression.js renamed to test/fixtures/es-modules/input-type-auto-scope/cjs-with-import-expression.js

File renamed without changes.

test/fixtures/es-modules/entry-type-auto-scope/cjs-with-property-named-export.js renamed to test/fixtures/es-modules/input-type-auto-scope/cjs-with-property-named-export.js

File renamed without changes.

test/fixtures/es-modules/entry-type-auto-scope/cjs-with-property-named-import.js renamed to test/fixtures/es-modules/input-type-auto-scope/cjs-with-property-named-import.js

File renamed without changes.

test/fixtures/es-modules/entry-type-auto-scope/cjs-with-require.js renamed to test/fixtures/es-modules/input-type-auto-scope/cjs-with-require.js

File renamed without changes.

test/fixtures/es-modules/entry-type-auto-scope/cjs-with-string-containing-import.js renamed to test/fixtures/es-modules/input-type-auto-scope/cjs-with-string-containing-import.js

File renamed without changes.

test/fixtures/es-modules/entry-type-auto-scope/esm-with-export-statement.js renamed to test/fixtures/es-modules/input-type-auto-scope/esm-with-export-statement.js

File renamed without changes.

0 commit comments

Comments
 (0)