Skip to content

Commit

Permalink
Fix #1744 (#1745)
Browse files Browse the repository at this point in the history
* fix

* fix

* lint-fix
  • Loading branch information
cspotcode committed May 7, 2022
1 parent 4717fc9 commit c67eb46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/index.spec.ts
Expand Up @@ -1117,7 +1117,11 @@ test('Detect when typescript adds new ModuleKind values; flag as a failure so we
expect(ts.ModuleKind[99]).toBeUndefined();
}
check(7, 'ES2022', false);
check(100, 'Node12', false);
if (ts.version.startsWith('4.8.') || semver.gte(ts.version, '4.8.0')) {
check(100, 'Node16', false);
} else {
check(100, 'Node12', false);
}
check(199, 'NodeNext', false);
const actualKeys = Object.keys(ts.ModuleKind);
actualKeys.sort();
Expand Down

0 comments on commit c67eb46

Please sign in to comment.