GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — esm: fix duplicated test · nodejs/node@910fbd0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/es-module
    • test-esm-specifiers-legacy-flag.mjs
    • test-esm-specifiers.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/es-module/test-esm-specifiers-legacy-flag.mjs‎

Copy file name to clipboardExpand all lines: test/es-module/test-esm-specifiers-legacy-flag.mjs
-21Lines changed: 0 additions & 21 deletions
This file was deleted.
Collapse file

‎test/es-module/test-esm-specifiers.mjs‎

Copy file name to clipboardExpand all lines: test/es-module/test-esm-specifiers.mjs
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ describe('ESM: specifier-resolution=node', { concurrency: true }, () => {
1414
'--eval',
1515
[
1616
'import { strictEqual } from "node:assert";',
17-
// commonJS index.js
17+
// CommonJS index.js
1818
`import commonjs from ${JSON.stringify(fixtures.fileURL('es-module-specifiers/package-type-commonjs'))};`,
19-
// esm index.js
19+
// ESM index.js
2020
`import module from ${JSON.stringify(fixtures.fileURL('es-module-specifiers/package-type-module'))};`,
21+
// Directory entry with main.js
22+
`import main from ${JSON.stringify(fixtures.fileURL('es-module-specifiers/dir-with-main'))};`,
2123
// Notice the trailing slash
2224
`import success, { explicit, implicit, implicitModule } from ${JSON.stringify(fixtures.fileURL('es-module-specifiers/'))};`,
2325
'strictEqual(commonjs, "commonjs");',
2426
'strictEqual(module, "module");',
27+
'strictEqual(main, "main");',
2528
'strictEqual(success, "success");',
2629
'strictEqual(explicit, "esm");',
2730
'strictEqual(implicit, "cjs");',

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.