Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! loader: return package format from defaultResolve if known
  • Loading branch information
dygabo committed Dec 13, 2021
commit 2d2c4754322117dd5ccf362206e45be42c0edfb8
3 changes: 1 addition & 2 deletions test/es-module/test-esm-loader-resolve-type.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { allowGlobals } from '../common/index.mjs';
import * as fixtures from '../common/fixtures.mjs';
import { strict as assert } from 'assert';
import * as fs from 'fs';
import { fileURLToPath } from 'url';

allowGlobals(global.getModuleTypeStats);

Expand Down Expand Up @@ -32,7 +31,7 @@ const { importedESM: importedESMBefore,
importedCJS: importedCJSBefore } = global.getModuleTypeStats();

import(`${moduleName}`).finally(() => {
fs.rmSync(fileURLToPath(basePath), { recursive: true, force: true });
fs.rmSync(basePath, { recursive: true, force: true });
});

const { importedESM: importedESMAfter,
Expand Down