Skip to content

Commit

Permalink
Fix flaky test for size output (#56303)
Browse files Browse the repository at this point in the history
x-ref: https://github.com/vercel/next.js/actions/runs/6380869104/job/17316148085?pr=56187

Tune the regex that match the correct number but without leading zero
  • Loading branch information
huozhi committed Oct 2, 2023
1 parent dba978f commit ac95a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/app-dir/app/index.test.ts
Expand Up @@ -16,7 +16,7 @@ createNextDescribe(
if (!process.env.NEXT_EXPERIMENTAL_COMPILE) {
it('should have correct size in build output', async () => {
expect(next.cliOutput).toMatch(
/\/dashboard\/another.*? [^0]{1,} [\w]{1,}B/
/\/dashboard\/another.*? *?[^0]\d{1,} [\w]{1,}B/
)
})
}
Expand Down

0 comments on commit ac95a20

Please sign in to comment.