Skip to content

Commit

Permalink
[enzyme-adapter-react-16] [fix] avoid invariant violation in provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ooHmartY authored and ljharb committed Apr 5, 2019
1 parent a90a845 commit b6f5b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/enzyme-adapter-react-16/src/detectFiberTags.js
Expand Up @@ -62,13 +62,13 @@ module.exports = function detectFiberTags() {
? getFiber(React.createElement(Ctx.Consumer, null, () => null)).tag
: -1,
ContextProvider: supportsContext
? getFiber(React.createElement(Ctx.Provider, { value: null })).tag
? getFiber(React.createElement(Ctx.Provider, { value: null }, null)).tag
: -1,
ForwardRef: supportsForwardRef
? getFiber(React.createElement(FwdRef)).tag
: -1,
Profiler: supportsProfiler
? getFiber(React.createElement(React.unstable_Profiler, { id: 'mock', onRender: () => {} })).tag
? getFiber(React.createElement(React.unstable_Profiler, { id: 'mock', onRender() {} })).tag
: -1,
};
};

0 comments on commit b6f5b51

Please sign in to comment.