Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Feb 19, 2022
1 parent b8c6639 commit 6db1dda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1286,14 +1286,15 @@ test('Detect when typescript adds new ModuleKind values; flag as a failure so we
check(3, 'UMD', true);
check(4, 'System', true);
check(5, 'ES2015', true);
check(6, 'ES2020', false);
check(7, 'ES2022', false);
try {
check(6, 'ES2020', false);
check(99, 'ESNext', true);
} catch {
// the value changed: is `99` now, but was `6` in TS 2.7
check(6, 'ESNext', true);
expect(ts.ModuleKind[99]).toBeUndefined();
}
check(7, 'ES2022', false);
check(100, 'Node12', false);
check(199, 'NodeNext', false);
const actualKeys = Object.keys(ts.ModuleKind);
Expand Down

0 comments on commit 6db1dda

Please sign in to comment.