From 43f18f3f54b033f5cb1d2eb3dc2474e0f87d7108 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sat, 16 Oct 2021 00:50:39 +0100 Subject: [PATCH] fix jest build problem See https://github.com/facebook/create-react-app/issues/9938, specifically the solution in https://github.com/facebook/create-react-app/issues/9938#issuecomment-743701100 --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 1bf967a6..19218836 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,10 @@ ] }, "jest": { + "transform": { + "^.+\\.[t|j]sx?$": "babel-jest" + }, + "transformIgnorePatterns": ["node_modules/(?!react-markdown)/"], "coverageThreshold": { "global": { "branches": 0,