From fbf736a970fb4c6616565b2d4cb89b6d15668ee6 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Mon, 21 Oct 2024 14:36:04 +0100 Subject: [PATCH] chore: fix axios import #158 --- consumer/package.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/consumer/package.json b/consumer/package.json index e1e356d..1d74c2a 100644 --- a/consumer/package.json +++ b/consumer/package.json @@ -24,11 +24,11 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!axios)/\"", + "test": "react-scripts test", "eject": "react-scripts eject", "pretest:pact": "rimraf pacts/*.json", - "test:pact": "cross-env CI=true react-scripts test --testTimeout=30000 pact.spec.js --transformIgnorePatterns \"node_modules/(?!axios)/\"", - "test:unit": "cross-env CI=true react-scripts test api.spec.js --transformIgnorePatterns \"node_modules/(?!axios)/\"" + "test:pact": "cross-env CI=true react-scripts test --testTimeout=30000 pact.spec.js", + "test:unit": "cross-env CI=true react-scripts test api.spec.js" }, "eslintConfig": { "extends": [ @@ -47,5 +47,10 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "jest": { + "transformIgnorePatterns": [ + "node_modules/(?!(axios)/)" + ] } }