From 3195bcdbcb511cc218859dc6b35de8628a6fb9bc Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 30 Jan 2017 21:48:05 +0000 Subject: [PATCH] Add process.cwd to the test process shim --- src/renderers/dom/__tests__/ReactDOMProduction-test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderers/dom/__tests__/ReactDOMProduction-test.js b/src/renderers/dom/__tests__/ReactDOMProduction-test.js index ad82b35822..59b7c89b21 100644 --- a/src/renderers/dom/__tests__/ReactDOMProduction-test.js +++ b/src/renderers/dom/__tests__/ReactDOMProduction-test.js @@ -22,6 +22,7 @@ describe('ReactDOMProduction', () => { __DEV__ = false; oldProcess = process; global.process = { + cwd: process.cwd, env: Object.assign({}, process.env, {NODE_ENV: 'production'}), };