From 2f06414de4843d0969952d629acc6a9c238dbd2e Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 9 Jan 2025 17:35:05 -0500 Subject: [PATCH] Set node version in package.json --- jest.config.ts => jest.config.js | 7 ++----- package.json | 2 +- tsconfig.eslint.json | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) rename jest.config.ts => jest.config.js (89%) diff --git a/jest.config.ts b/jest.config.js similarity index 89% rename from jest.config.ts rename to jest.config.js index a7cf275..0d9c650 100644 --- a/jest.config.ts +++ b/jest.config.js @@ -1,8 +1,7 @@ // See: https://jestjs.io/docs/configuration -import type { JestConfigWithTsJest } from 'ts-jest' - -const jestConfig: JestConfigWithTsJest = { +/** @type {import('ts-jest').JestConfigWithTsJest} **/ +export default { clearMocks: true, collectCoverage: true, collectCoverageFrom: ['./src/**'], @@ -39,5 +38,3 @@ const jestConfig: JestConfigWithTsJest = { }, verbose: true } - -export default jestConfig diff --git a/package.json b/package.json index a785fa2..3b952b0 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ ".": "./dist/index.js" }, "engines": { - "node": ">=21" + "node": ">=20" }, "scripts": { "bundle": "npm run format:write && npm run package", diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index ffa9650..7a00c40 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -11,7 +11,7 @@ "__tests__", "src", "eslint.config.mjs", - "jest.config.ts", + "jest.config.js", "rollup.config.ts" ] }