Skip to content

Commit

Permalink
fix tests (#163)
Browse files Browse the repository at this point in the history
* fix tests

* Fixed tests in Node v12
g
  • Loading branch information
mcollina authored May 26, 2021
1 parent d0d93a5 commit 9f338db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/unit-typescript-esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { exec } = require('child_process')
const semver = require('semver')

if (semver.satisfies(process.version, '>= 14 || >= 13.4.0 || >= 12.16.0 < 13.0.0')) {
if (semver.satisfies(process.version, '>= 14')) {
const args = [
'tap',
'--node-arg=--loader=ts-node/esm',
Expand Down
4 changes: 2 additions & 2 deletions test/typescript-esm/forceESM.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fastify from 'fastify'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'path'
import { fileURLToPath } from 'url'
import t from 'tap'
import fastifyAutoLoad from '../../'

Expand Down

0 comments on commit 9f338db

Please sign in to comment.