You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO: relax `'16.9.1'` to `16` once GitHub has 16.9.1 cached. 16.9.0 is broken due to https://github.com/nodejs/node/issues/40030
// eslint-disable-next-line jest/no-if -- jest doesn't support conditional tests
118
-
if(isConcurrentReact){
119
-
// eslint-disable-next-line jest/no-conditional-expect -- yes, jest still doesn't support conditional tests
120
-
expect(performConcurrentRender).not.toThrow()
121
-
}else{
122
-
// eslint-disable-next-line jest/no-conditional-expect -- yes, jest still doesn't support conditional tests
123
-
expect(performConcurrentRender).toThrowError(
124
-
`Attempted to use concurrent React with \`react-dom@${ReactDOM.version}\`. Be sure to use the \`next\` or \`experimental\` release channel (https://reactjs.org/docs/release-channels.html).`,
125
-
)
126
-
}
127
-
})
128
-
129
112
test('can be called multiple times on the same container',()=>{
130
113
constcontainer=document.createElement('div')
131
114
@@ -168,3 +151,47 @@ test('hydrate will make the UI interactive', () => {
"Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
"Warning: ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
0 commit comments