Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Niloofar Sadeghi / Jest issue with typescript #6442

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module.exports = {
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+/es/^.+$': 'babel-jest',
'^.+\\.ts?$': 'ts-jest',
niloofar-deriv marked this conversation as resolved.
Show resolved Hide resolved
'^.+\\.tsx?$': 'ts-jest',
niloofar-deriv marked this conversation as resolved.
Show resolved Hide resolved
},
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
2 changes: 2 additions & 0 deletions packages/indicators/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ module.exports = {
...baseConfigForPackages,
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.ts?$': 'ts-jest',
'^.+\\.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