Skip to content

Commit

Permalink
conf: update to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
ComradeVanti committed Nov 1, 2024
1 parent 0b70a3a commit 52739b8
Show file tree
Hide file tree
Showing 111 changed files with 751 additions and 622 deletions.
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

22 changes: 22 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import type { JestConfigWithTsJest } from "ts-jest";

const jestConfig: JestConfigWithTsJest = {
preset: "ts-jest",
testEnvironment: "node",
verbose: true,
clearMocks: true,
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
};

export default jestConfig;
177 changes: 156 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"engines": {
"node": ">=18"
},
"type": "module",
"scripts": {
"test:e2e": "jest --testMatch \"**/e2e/**/*.test.ts\" --runInBand",
"test:integration": "jest --testMatch \"**/integration/**/*.test.ts\" --runInBand",
Expand Down Expand Up @@ -46,9 +47,9 @@
"@types/node": "^18.19.31",
"@types/npm-profile": "^5.0.5",
"@types/npmlog": "^4.1.4",
"@types/pkginfo": "^0.4.1",
"@types/promptly": "^3.0.3",
"@types/request": "^2.48.12",
"@types/semver": "^7.5.8",
"@types/update-notifier": "^5.1.0",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
Expand All @@ -63,6 +64,7 @@
"rimraf": "^5.0.5",
"semantic-release": "^22.0.12",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
},
"dependencies": {
Expand All @@ -78,9 +80,8 @@
"npm-profile": "^11.0.0",
"npm-registry-fetch": "^13.1.1",
"npmlog": "^6.0.2",
"pkginfo": "^0.4.1",
"promptly": "^3.2.0",
"semver": "^7.5.4",
"semver": "^7.6.3",
"ts-custom-error": "^3.3.1",
"ts-results-es": "^4.1.0",
"update-notifier": "^5.1.0",
Expand Down
Loading

0 comments on commit 52739b8

Please sign in to comment.