Skip to content

Commit

Permalink
Replace babel-jest with ts-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
wewei committed Mar 15, 2022
1 parent 43dc518 commit 2f4294d
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 11 deletions.
6 changes: 0 additions & 6 deletions babel.config.js

This file was deleted.

4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ module.exports = {
// timers: "real",

// A map from regular expressions to paths to transformers
// transform: undefined,
transform: {
"^.+\\.tsx?$": "ts-jest",
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
Expand Down
132 changes: 132 additions & 0 deletions package-lock.json

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

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,14 @@
},
"homepage": "https://ts-monad.github.io/observable/",
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^27.4.1",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"babel-jest": "^27.5.1",
"copyfiles": "^2.4.1",
"eslint": "^8.10.0",
"jest": "^27.5.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.3",
"typescript": "^4.6.2"
}
}

0 comments on commit 2f4294d

Please sign in to comment.