Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tweak test
  • Loading branch information
huozhi committed Apr 16, 2024
commit 264d1d97be4a33a93850c590d09fca45db474bed
10 changes: 7 additions & 3 deletions test/e2e/app-dir/logging/fetch-logging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ describe('app-dir - logging', () => {
it('should log each page request only once', async () => {
const outputIndex = next.cliOutput.length
await next.fetch('/')
const logsAfterRequest = stripAnsi(next.cliOutput.slice(outputIndex))
// Only show `GET /` once
expect(logsAfterRequest.split('GET /').length).toBe(2)
await retry(() => {
const logsAfterRequest = stripAnsi(
next.cliOutput.slice(outputIndex)
)
// Only show `GET /` once
expect(logsAfterRequest.split('GET /').length).toBe(2)
})
})

it('should exlucde Middleware invoked and _rsc requests', async () => {
Expand Down