Unverified Commit 992c46e6 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub
parent 90f022ae
...@@ -326,6 +326,12 @@ describe('ReactRefreshLogBox app', () => { ...@@ -326,6 +326,12 @@ describe('ReactRefreshLogBox app', () => {
` `
) )
expect(await session.hasRedbox(true)).toBe(true) expect(await session.hasRedbox(true)).toBe(true)
await check(async () => {
const source = await session.getRedboxSource()
return source?.length > 1 ? 'success' : source
}, 'success')
expect(await session.getRedboxSource()).toMatchSnapshot() expect(await session.getRedboxSource()).toMatchSnapshot()
await cleanup() await cleanup()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment