Skip to content

Commit

Permalink
➕ replaced babel with ts-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Oct 1, 2024
1 parent 3f97b1e commit 4aa75d6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion apps/dapp/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const customJestConfig = {
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
testEnvironment: "jsdom",
transform: {
'^.+\\.tsx?$': 'babel-jest',
"^.+.tsx?$": ["ts-jest",{}],
}
};

Expand Down
7 changes: 3 additions & 4 deletions apps/dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,20 @@
"react-redux": "^9.1.2"
},
"devDependencies": {
"@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7",
"@jest/globals": "^29.7.0",
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"@testing-library/jest-dom": "6.1.5",
"@testing-library/react": "14.1.2",
"@types/jest": "29.5.11",
"@types/jest": "^29.5.13",
"@types/node": "^20",
"@types/react": "18.2.45",
"@types/react-dom": "^18",
"babel-jest": "^29.7.0",
"eslint": "^8",
"eslint-config-next": "15.0.0-rc.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"ts-jest": "^29.2.5",
"typescript": "5.3.3"
}
}
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@
"@babel/helper-create-regexp-features-plugin" "^7.25.2"
"@babel/helper-plugin-utils" "^7.24.8"

"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.24.4", "@babel/preset-env@^7.25.4":
"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.24.4":
version "7.25.4"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.25.4.tgz#be23043d43a34a2721cd0f676c7ba6f1481f6af6"
integrity sha512-W9Gyo+KmcxjGahtt3t9fb14vFRWvPpu5pT6GBlovAK6BTBcxgjfVMSQCfJl4oi35ODrxP6xx2Wr8LNST57Mraw==
Expand Down Expand Up @@ -995,7 +995,7 @@
"@babel/types" "^7.4.4"
esutils "^2.0.2"

"@babel/preset-typescript@^7.23.0", "@babel/preset-typescript@^7.24.7":
"@babel/preset-typescript@^7.23.0":
version "7.24.7"
resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.24.7.tgz#66cd86ea8f8c014855671d5ea9a737139cbbfef1"
integrity sha512-SyXRe3OdWwIwalxDg5UtJnJQO+YPcTfwiIY2B0Xlddh9o7jpWLvv8X1RthIeDOxQ+O1ML5BLPCONToObyVQVuQ==
Expand Down Expand Up @@ -4645,14 +4645,6 @@
dependencies:
"@types/istanbul-lib-report" "*"

"@types/[email protected]":
version "29.5.11"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.11.tgz#0c13aa0da7d0929f078ab080ae5d4ced80fa2f2c"
integrity sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==
dependencies:
expect "^29.0.0"
pretty-format "^29.0.0"

"@types/jest@^25.2.1":
version "25.2.3"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-25.2.3.tgz#33d27e4c4716caae4eced355097a47ad363fdcaf"
Expand All @@ -4669,6 +4661,14 @@
expect "^29.0.0"
pretty-format "^29.0.0"

"@types/jest@^29.5.13":
version "29.5.13"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.13.tgz#8bc571659f401e6a719a7bf0dbcb8b78c71a8adc"
integrity sha512-wd+MVEZCHt23V0/L642O5APvspWply/rGY5BcW4SUETo2UzPU3Z26qr8jC2qxpimI2jjx9h7+2cj2FwIr01bXg==
dependencies:
expect "^29.0.0"
pretty-format "^29.0.0"

"@types/jsdom@^20.0.0":
version "20.0.1"
resolved "https://registry.yarnpkg.com/@types/jsdom/-/jsdom-20.0.1.tgz#07c14bc19bd2f918c1929541cdaacae894744808"
Expand Down Expand Up @@ -14954,7 +14954,7 @@ ts-jest@^25.3.1:
semver "6.x"
yargs-parser "18.x"

ts-jest@^29.1.2:
ts-jest@^29.1.2, ts-jest@^29.2.5:
version "29.2.5"
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.2.5.tgz#591a3c108e1f5ebd013d3152142cb5472b399d63"
integrity sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA==
Expand Down

0 comments on commit 4aa75d6

Please sign in to comment.