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
Edit test/setup.ts to add global beforeAll() and afterAll() methods. Here is an example that worked for us:
// test/setup.tsconstoriginalError=console.errorconstoriginalWarn=console.warnbeforeAll(()=>{console.error=(msg)=>!msg.toString().includes("ReactDOM.render is no longer supported in React 18")console.warn=(msg)=>!msg.toString().includes("Please update the following components: Griddle")})afterAll(()=>{console.error=originalErrorconsole.warn=originalWarn})export{}// so TS doesn't complain
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Edit
test/setup.ts
to add globalbeforeAll()
andafterAll()
methods. Here is an example that worked for us:Source from Stackoverflow
Beta Was this translation helpful? Give feedback.
All reactions