From 84bb251d3ed3c914243b6b725545f0836fc9dd64 Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Sat, 14 Oct 2023 12:12:41 +0200 Subject: [PATCH] chore: use esm jest config --- jest.config.cjs => jest.config.js | 2 +- package.json | 8 ++++---- pnpm-lock.yaml | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) rename jest.config.cjs => jest.config.js (94%) diff --git a/jest.config.cjs b/jest.config.js similarity index 94% rename from jest.config.cjs rename to jest.config.js index f038dae..d8d43e0 100644 --- a/jest.config.cjs +++ b/jest.config.js @@ -1,5 +1,5 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ -module.exports = { +export default { testEnvironment: 'jsdom', collectCoverage: true, testMatch: ['/test/**/*.test.ts'], diff --git a/package.json b/package.json index 56aa97c..553cea9 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "@types/dlv": "^1.1.2", "@types/estree": "1.0.1", "@types/intl": "^1.2.0", - "@types/jest": "^29.5.4", + "@types/jest": "^29.5.5", "@types/node": "^20.5.9", "@types/sade": "^1.7.4", "conventional-changelog-cli": "^2.2.2", @@ -77,8 +77,8 @@ "eslint": "^8.48.0", "full-icu": "^1.5.0", "husky": "^4.3.8", - "jest": "^29.3.1", - "jest-environment-jsdom": "^29.3.1", + "jest": "^29.7.0", + "jest-environment-jsdom": "^29.7.0", "lint-staged": "^13.0.3", "prettier": "^3.0.3", "publint": "^0.2.4", @@ -89,7 +89,7 @@ "sass": "^1.56.1", "svelte": "^3.53.1", "svelte-preprocess": "^5.0.4", - "ts-jest": "^29.0.3", + "ts-jest": "^29.1.1", "typescript": "^5.2.2" }, "dependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0662a6a..a579735 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,7 +46,7 @@ devDependencies: specifier: ^1.2.0 version: 1.2.0 '@types/jest': - specifier: ^29.5.4 + specifier: ^29.5.5 version: 29.5.5 '@types/node': specifier: ^20.5.9 @@ -70,10 +70,10 @@ devDependencies: specifier: ^4.3.8 version: 4.3.8 jest: - specifier: ^29.3.1 + specifier: ^29.7.0 version: 29.7.0(@types/node@20.8.4) jest-environment-jsdom: - specifier: ^29.3.1 + specifier: ^29.7.0 version: 29.7.0 lint-staged: specifier: ^13.0.3 @@ -106,7 +106,7 @@ devDependencies: specifier: ^5.0.4 version: 5.0.4(sass@1.69.3)(svelte@3.59.2)(typescript@5.2.2) ts-jest: - specifier: ^29.0.3 + specifier: ^29.1.1 version: 29.1.1(esbuild@0.19.4)(jest@29.7.0)(typescript@5.2.2) typescript: specifier: ^5.2.2