Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed May 15, 2021
1 parent e970eac commit fef7733
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/index.spec.ts
Expand Up @@ -681,9 +681,10 @@ test.suite('ts-node', (test) => {
}));
if (
semver.gte(ts.version, '3.5.0') &&
semver.gte(process.versions.node, '16.0.0')
semver.gte(process.versions.node, '14.0.0')
) {
test('implicitly uses @tsconfig/node16 compilerOptions when both TS and node versions support it', async (t) => {
test('implicitly uses @tsconfig/node14 or @tsconfig/node16 compilerOptions when both TS and node versions support it', async (t) => {
// node14 and node16 configs are identical, hence the "or"
const {
context: { tempDir },
} = t;
Expand All @@ -708,7 +709,7 @@ test.suite('ts-node', (test) => {
expect(stdout2).to.equal('10n\n');
});
} else {
test('implicitly uses @tsconfig/* lower than node16 (node12 or node14) when either TS or node versions do not support @tsconfig/node16', async ({
test('implicitly uses @tsconfig/* lower than node14 (node12) when either TS or node versions do not support @tsconfig/node14', async ({
context: { tempDir },
}) => {
const { err, stdout, stderr } = await exec(`${BIN_PATH} -pe 10n`, {
Expand Down

0 comments on commit fef7733

Please sign in to comment.