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
This commit is contained in:
parent
ec9efb8a01
commit
d24db57d8e
|
@ -84,7 +84,8 @@
|
|||
"downstream/core/toArray.js",
|
||||
"node_modules/jest-cli",
|
||||
"node_modules/react/dist",
|
||||
"/node_modules/fbjs/.*/__mocks__/"
|
||||
"/node_modules/fbjs/.*/__mocks__/",
|
||||
"<rootDir>/website/"
|
||||
],
|
||||
"testFileExtensions": [
|
||||
"js"
|
||||
|
|
Loading…
Reference in New Issue