Skip to content

Commit bc65f9c

Browse files
committed
remove duplicate logs in console-patch test
after the validation changes, we're no longer running three renders, so the log only appears once
1 parent 12b44c6 commit bc65f9c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/e2e/app-dir/cache-components-errors/cache-components-console-patch.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ describe('Cache Components Errors', () => {
4545
expect(output).toContain('GET / 200')
4646
const snapshot = output.slice(0, output.indexOf('GET / 200')).trim()
4747

48-
expect(snapshot).toMatchInlineSnapshot(`
49-
"[<timestamp>] This is a console log from a server component page
50-
[<timestamp>] This is a console log from a server component page
51-
[<timestamp>] This is a console log from a server component page"
52-
`)
48+
expect(snapshot).toMatchInlineSnapshot(
49+
`"[<timestamp>] This is a console log from a server component page"`
50+
)
5351
})
5452
} else {
5553
it('does not fail the build for Sync IO if console.log is patched to call new Date() internally', async () => {

0 commit comments

Comments
 (0)