Skip to content

Commit c69a081

Browse files
committed
test(typescript): match module and moduleResolution in test
1 parent d5df2fd commit c69a081

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"module": "nodenext",
34
"moduleResolution": "nodenext"
45
}
56
}

packages/typescript/test/test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,10 +1549,9 @@ test.serial('correctly resolves types with nodenext moduleResolution', async (t)
15491549
});
15501550
const code = await getCode(bundle, outputOptions);
15511551

1552-
t.true(code.includes('var bar = foo'), code);
1553-
t.is(warnings.length, 2);
1554-
t.is(warnings[0].pluginCode, 'TS5110');
1555-
t.is(warnings[1].code, 'UNRESOLVED_IMPORT');
1552+
t.true(code.includes('const bar = foo'), code);
1553+
t.is(warnings.length, 1);
1554+
t.is(warnings[0].code, 'UNRESOLVED_IMPORT');
15561555
});
15571556

15581557
test.serial('noForceEmit option defers to tsconfig.json for emitDeclarationOnly', async (t) => {

0 commit comments

Comments
 (0)