Skip to content

Commit

Permalink
Attempt to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Jul 19, 2020
1 parent 9855709 commit 8515bca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions test/integration/no-duplicate-compile-error/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
onDemandEntries: {
// Make sure entries are not getting disposed.
maxInactiveAge: 1000 * 60 * 60,
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ describe('no duplicate compile error output', () => {
}

// Wait for compile error to disappear:
await check(() => hasRedbox(browser).then((r) => (r ? 'yes' : 'no')), /no/)
await check(
() => hasRedbox(browser, false).then((r) => (r ? 'yes' : 'no')),
/no/
)
await browser.waitForElementByCss('#a')

expect((stdout.match(/Unexpected token/g) || []).length).toBe(1)
Expand Down

0 comments on commit 8515bca

Please sign in to comment.