Skip to content

Commit

Permalink
Niloofar Sadeghi / Jest issue with typescript (#6442)
Browse files Browse the repository at this point in the history
* fix: indicator ts-jest config

* fix: add ts-jest to the root of the project

* fix: resolve comments

* fix: review comments
  • Loading branch information
niloofar-deriv authored Sep 14, 2022
1 parent 55a816a commit 027d726
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 1 deletion.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+/es/^.+$': 'babel-jest',
'^.+\\.(ts|tsx)?$': 'ts-jest',
},
testRegex: ['__tests__', '.*.spec.js'],
transformIgnorePatterns: ['/node_modules/(?!react-virtualized).+\\.js$'],
Expand Down
126 changes: 125 additions & 1 deletion package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@types/react-router-dom": "^5.1.6",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"ts-jest": "^26.4.2",
"babel-polyfill": "^6.26.0",
"chai": "^4.2.0",
"eslint": "^7.18.0",
Expand Down
1 change: 1 addition & 0 deletions packages/indicators/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ module.exports = {
...baseConfigForPackages,
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.(ts|tsx)?$': 'ts-jest',
},
};
1 change: 1 addition & 0 deletions packages/indicators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.16.7",
"ts-jest": "^26.4.2",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-binary": "^1.0.2",
"eslint-config-prettier": "^7.2.0",
Expand Down

1 comment on commit 027d726

@vercel
Copy link

@vercel vercel bot commented on 027d726 Sep 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.binary.sx
deriv-app-git-master.binary.sx
binary.sx
deriv-app.vercel.app

Please sign in to comment.