From 0a9b0f6bfba53a0b2dd4bf586afe1d41e7a971e3 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 18 Feb 2018 16:11:25 -0500 Subject: [PATCH] Running tests in production environment to remove spurious warnings This gets rid of the warnings from React due to jsdom not recognizing SVG elements. Looks like there's a PR against jsdom that might fix this, so once that's in this change can be reverted --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 192fd66..38b15f0 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "build:webpack": "webpack --config webpack.prod.js", "build:prerender": "node ./script/__build__/prerender.js", "test": "run-s test:lint 'test:unit --coverage'", - "test:unit": "jest", + "test:unit": "cross-env NODE_ENV=production jest", "test:lint": "eslint --ignore-path .gitignore .", "test:watch": "yarn test:unit --watch", "i18n:scrub": "node ./script/i18n-scrub.js",