From f2204c850c7b6c870f1f21d9f35b45bafbcd6810 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bachorski <60391032+arkadiuszbachorski@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:09:39 +0200 Subject: [PATCH] Make example module bulletproof for JSX (#25) # Make example module bulletproof for React code ## :recycle: Current situation & Problem Current module would fail tests if it contained React code ## :gear: 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). --- jest.config.js | 4 ---- packages/example-package/tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/jest.config.js b/jest.config.js index e828062..4c2786e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -20,8 +20,4 @@ module.exports = { }, ], }, - moduleNameMapper: { - '^@stanfordbdhg/example-package$': - '/packages/example-package/dist', - }, } diff --git a/packages/example-package/tsconfig.json b/packages/example-package/tsconfig.json index 1d19b72..496f1d6 100644 --- a/packages/example-package/tsconfig.json +++ b/packages/example-package/tsconfig.json @@ -6,7 +6,7 @@ "module": "commonjs", "target": "es6", "lib": ["esnext"], - "jsx": "preserve", + "jsx": "react-jsx", "rootDir": "src", "outDir": "dist", "esModuleInterop": true,