Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed May 5, 2024
1 parent 3b2553a commit d8f7e20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/specs/smoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export default testSuite(async ({ describe }, { tsx }: NodeApis) => {
import './js/index.js?query=123';
import './js/index';
import './js/';
import '{ FIXTURE_PATH }/js/index.js';
import '{ FIXTURE_PATH }';
// No double .default.default in Dynamic Import
import('./js/index.js').then(m => {
Expand Down Expand Up @@ -643,7 +643,9 @@ export default testSuite(async ({ describe }, { tsx }: NodeApis) => {
const importFromTs = await fixture.readFile('import-from-ts.ts', 'utf8');
const importFromTsWithAbsolutePath = importFromTs.toString().replace(
'{ FIXTURE_PATH }',
packageType === 'module' ? pathToFileURL(fixture.path).toString() : fixture.path,
packageType === 'module'
? new URL('js/index.js', pathToFileURL(`${fixture.path}/`)).toString()
: path.resolve(fixture.path, 'js/index.js'),
);
await fixture.writeFile('import-from-ts.ts', importFromTsWithAbsolutePath);
onFinish(async () => await fixture.rm());
Expand Down

0 comments on commit d8f7e20

Please sign in to comment.