From d24db57d8ec2970cf64a4f3176dfea284360d6d2 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Thu, 10 Mar 2016 08:49:10 -0800 Subject: [PATCH] fixed jest tests: added /website/ folder to jest ignore list Summary:If website has node_modules installed `npm tests` **Test plan (required)** ``` cd website && npm install cd .. && npm test ``` Before this fix we see this error: Error: Failed to build DependencyGraph: providesModule naming collision: Duplicate module name: ViewportMetrics Paths: react-native/node_modules/react/lib/ViewportMetrics.js collides with react-native/website/node_modules/react/lib/ViewportMetrics.js Closes https://github.com/facebook/react-native/pull/6170 Differential Revision: D3001147 Pulled By: bestander fb-gh-sync-id: a040edf097183e6899c0ff49785ff36bd465eb61 shipit-source-id: a040edf097183e6899c0ff49785ff36bd465eb61 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0cdbd2c1f..b1b8080c7 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,8 @@ "downstream/core/toArray.js", "node_modules/jest-cli", "node_modules/react/dist", - "/node_modules/fbjs/.*/__mocks__/" + "/node_modules/fbjs/.*/__mocks__/", + "/website/" ], "testFileExtensions": [ "js"