diff --git a/consumer/package.json b/consumer/package.json index cd30e48..48f0379 100644 --- a/consumer/package.json +++ b/consumer/package.json @@ -26,11 +26,11 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "cross-env CI=true react-scripts test --transformIgnorePatterns \"node_modules/(?!axios)/\"", + "test": "cross-env CI=true 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", "pact:publish": "pact-broker publish ./pacts --consumer-app-version=\"1.0.2\" --auto-detect-version-properties --broker-base-url=http://127.0.0.1:8000 --broker-username pact_workshop --broker-password pact_workshop", "pact:publish2": "pact-broker publish ./pacts --consumer-app-version=\"$(./node_modules/.bin/absolute-version-from-git-tag)\" --auto-detect-version-properties --broker-base-url=http://localhost:8000 --broker-username pact_workshop --broker-password pact_workshop" }, @@ -51,5 +51,10 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "jest": { + "transformIgnorePatterns": [ + "node_modules/(?!(axios)/)" + ] } }