Skip to content

Commit

Permalink
test: stick on Node v18.18
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 25, 2023
1 parent c0996dd commit a96fcfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
node:
- 16
- 18
- 18.18
- 20
os:
- macos-latest
Expand Down
6 changes: 3 additions & 3 deletions test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export const _dirname = path.dirname(fileURLToPath(import.meta.url))
export const nodeVersion = Number.parseFloat(process.versions.node)

export const tsUseEsmSupported =
nodeVersion >= MTS_SUPPORTED_NODE_VERSION &&
// ts-jest limitation
nodeVersion < 20
// https://github.com/privatenumber/tsx/issues/354
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
nodeVersion >= MTS_SUPPORTED_NODE_VERSION && nodeVersion <= 18.18

export const testIf = (condition: boolean) => (condition ? it : it.skip)

0 comments on commit a96fcfd

Please sign in to comment.