Skip to content

Commit

Permalink
Fix fiber feature flag for ReactDOMProduction-test (facebook#8451)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits authored and acusti committed Mar 15, 2017
1 parent 7e8354d commit 7621f68
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions scripts/fiber/tests-failing.txt
Expand Up @@ -24,6 +24,9 @@ src/renderers/art/__tests__/ReactART-test.js
* resolves refs before componentDidMount
* resolves refs before componentDidUpdate

src/renderers/dom/__tests__/ReactDOMProduction-test.js
* should throw with an error code in production

src/renderers/dom/shared/__tests__/ReactDOM-test.js
* throws in render() if the mount callback is not a function
* throws in render() if the update callback is not a function
Expand Down
1 change: 0 additions & 1 deletion scripts/fiber/tests-passing.txt
Expand Up @@ -490,7 +490,6 @@ src/renderers/dom/__tests__/ReactDOMProduction-test.js
* should use prod React
* should handle a simple flow
* should call lifecycle methods
* should throw with an error code in production

src/renderers/dom/fiber/__tests__/ReactDOMFiber-test.js
* should render strings as children
Expand Down
Expand Up @@ -22,7 +22,9 @@ describe('ReactPropTypesProduction', function() {
beforeEach(function() {
__DEV__ = false;
oldProcess = process;
global.process = {env: {NODE_ENV: 'production'}};
global.process = {
env: Object.assign({}, process.env, {NODE_ENV: 'production'}),
};

jest.resetModuleRegistry();
PropTypes = require('ReactPropTypes');
Expand Down
4 changes: 3 additions & 1 deletion src/renderers/dom/__tests__/ReactDOMProduction-test.js
Expand Up @@ -19,7 +19,9 @@ describe('ReactDOMProduction', () => {
beforeEach(() => {
__DEV__ = false;
oldProcess = process;
global.process = {env: {NODE_ENV: 'production'}};
global.process = {
env: Object.assign({}, process.env, {NODE_ENV: 'production'}),
};

jest.resetModuleRegistry();
React = require('React');
Expand Down
4 changes: 3 additions & 1 deletion src/renderers/shared/utils/__tests__/ReactErrorUtils-test.js
Expand Up @@ -60,7 +60,9 @@ describe('ReactErrorUtils', () => {
);
__DEV__ = false;
var oldProcess = process;
global.process = {env: {NODE_ENV: 'production'}};
global.process = {
env: Object.assign({}, process.env, {NODE_ENV: 'production'}),
};
jest.resetModuleRegistry();
ReactErrorUtils = require('ReactErrorUtils');
expect(ReactErrorUtils.invokeGuardedCallback).toEqual(
Expand Down

0 comments on commit 7621f68

Please sign in to comment.