Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed May 6, 2024
1 parent d8f7e20 commit ef5196d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 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 }';
import { FIXTURE_PATH };
// No double .default.default in Dynamic Import
import('./js/index.js').then(m => {
Expand Down Expand Up @@ -643,9 +643,11 @@ 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'
? new URL('js/index.js', pathToFileURL(`${fixture.path}/`)).toString()
: path.resolve(fixture.path, 'js/index.js'),
JSON.stringify(
packageType === 'module'
? new URL('js/index.js', pathToFileURL(`${fixture.path}/`)).toString()
: path.resolve(fixture.path, 'js/index.js')

Check failure on line 649 in tests/specs/smoke.ts

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

Missing trailing comma
),
);
await fixture.writeFile('import-from-ts.ts', importFromTsWithAbsolutePath);
onFinish(async () => await fixture.rm());
Expand Down

0 comments on commit ef5196d

Please sign in to comment.