Skip to content

Commit

Permalink
Filter log warnings for image only
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Feb 18, 2022
1 parent 98cfdca commit 25e18b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ function runTests(mode) {
}, 'done')
const warnings = (await browser.log('browser'))
.map((log) => log.message)
.filter((log) => log !== 'Next.js page already hydrated')
.filter((log) => log.startsWith('Image with src'))
expect(warnings[0]).toMatch(
'Image with src "/test.png" has "sizes" property but it will be ignored.'
)
Expand Down

0 comments on commit 25e18b9

Please sign in to comment.