Skip to content
Permalink
Browse files
esm: fix duplicated test
PR-URL: #44779
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
GeoffreyBooth authored and danielleadams committed Oct 5, 2022
1 parent ab22777 commit 910fbd0eced936226e80341765d70c5d4177a1ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.

This file was deleted.

@@ -14,14 +14,17 @@ describe('ESM: specifier-resolution=node', { concurrency: true }, () => {
'--eval',
[
'import { strictEqual } from "node:assert";',
// commonJS index.js
// CommonJS index.js
`import commonjs from ${JSON.stringify(fixtures.fileURL('es-module-specifiers/package-type-commonjs'))};`,
// esm index.js
// ESM index.js
`import module from ${JSON.stringify(fixtures.fileURL('es-module-specifiers/package-type-module'))};`,
// Directory entry with main.js
`import main from ${JSON.stringify(fixtures.fileURL('es-module-specifiers/dir-with-main'))};`,
// Notice the trailing slash
`import success, { explicit, implicit, implicitModule } from ${JSON.stringify(fixtures.fileURL('es-module-specifiers/'))};`,
'strictEqual(commonjs, "commonjs");',
'strictEqual(module, "module");',
'strictEqual(main, "main");',
'strictEqual(success, "success");',
'strictEqual(explicit, "esm");',
'strictEqual(implicit, "cjs");',

0 comments on commit 910fbd0

Please sign in to comment.