Commit 190faf4d authored by JJ Kasper's avatar JJ Kasper

Fully skip flakey assertion

parent 3020a118
...@@ -879,19 +879,15 @@ describe.each([ ...@@ -879,19 +879,15 @@ describe.each([
} }
}) })
// assertion is highly flakey in turbopack mode // assertion is highly flakey
if (!process.env.TURBOPACK) { it.skip('should recover after loader parse error in an imported file', async () => {
it('should recover after loader parse error in an imported file', async () => {
let browser let browser
const aboutPage = join('pages', 'hmr', 'about9.js') const aboutPage = join('pages', 'hmr', 'about9.js')
const aboutContent = await next.readFile(aboutPage) const aboutContent = await next.readFile(aboutPage)
try { try {
browser = await webdriver(next.appPort, basePath + '/hmr/about9') browser = await webdriver(next.appPort, basePath + '/hmr/about9')
await check( await check(() => getBrowserBodyText(browser), /This is the about page/)
() => getBrowserBodyText(browser),
/This is the about page/
)
await next.patchFile( await next.patchFile(
aboutPage, aboutPage,
...@@ -944,10 +940,7 @@ describe.each([ ...@@ -944,10 +940,7 @@ describe.each([
await next.patchFile(aboutPage, aboutContent) await next.patchFile(aboutPage, aboutContent)
await check( await check(() => getBrowserBodyText(browser), /This is the about page/)
() => getBrowserBodyText(browser),
/This is the about page/
)
expect(await hasRedbox(browser)).toBe(false) expect(await hasRedbox(browser)).toBe(false)
} catch (err) { } catch (err) {
await next.patchFile(aboutPage, aboutContent) await next.patchFile(aboutPage, aboutContent)
...@@ -964,7 +957,6 @@ describe.each([ ...@@ -964,7 +957,6 @@ describe.each([
} }
} }
}) })
}
it('should recover from errors in getInitialProps in client', async () => { it('should recover from errors in getInitialProps in client', async () => {
let browser let browser
......
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