From 7530f028bfc099acc8e3a42408aca797b9b3ce60 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Sat, 21 May 2022 22:34:00 -0600 Subject: [PATCH] fix inline issue Ref: https://github.com/kentcdodds/testing-react-apps/issues/85 --- package-lock.json | 1 + package.json | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/package-lock.json b/package-lock.json index 225f835c3..8a73bfa95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,6 +36,7 @@ "stop-runaway-react-effects": "^2.0.0" }, "devDependencies": { + "@babel/preset-react": "^7.17.12", "@testing-library/cypress": "^8.0.2", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.2.0", diff --git a/package.json b/package.json index bcd860036..fafb0cebb 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "stop-runaway-react-effects": "^2.0.0" }, "devDependencies": { + "@babel/preset-react": "^7.17.12", "@testing-library/cypress": "^8.0.2", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.2.0", @@ -82,6 +83,11 @@ "validate-exercises": "node ./scripts/validate-exercises", "validate": "npm run validate-exercises && npm-run-all --parallel lint test:coverage build" }, + "babel": { + "presets": [ + "@babel/preset-react" + ] + }, "eslintConfig": { "extends": "react-app" },