Skip to content

Commit

Permalink
Make example module bulletproof for JSX (#25)
Browse files Browse the repository at this point in the history
# Make example module bulletproof for React code

## ♻️ Current situation & Problem
Current module would fail tests if it contained React code


## ⚙️ Release Notes 
*Make example module bulletproof for React code


### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
arkadiuszbachorski authored Jun 4, 2024
1 parent 3110680 commit f2204c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@ module.exports = {
},
],
},
moduleNameMapper: {
'^@stanfordbdhg/example-package$':
'<rootDir>/packages/example-package/dist',
},
}
2 changes: 1 addition & 1 deletion packages/example-package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "commonjs",
"target": "es6",
"lib": ["esnext"],
"jsx": "preserve",
"jsx": "react-jsx",
"rootDir": "src",
"outDir": "dist",
"esModuleInterop": true,
Expand Down

0 comments on commit f2204c8

Please sign in to comment.