Skip to content

Commit ac95a20

Browse files
authored
Fix flaky test for size output (#56303)
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
1 parent dba978f commit ac95a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/app-dir/app/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ createNextDescribe(
1616
if (!process.env.NEXT_EXPERIMENTAL_COMPILE) {
1717
it('should have correct size in build output', async () => {
1818
expect(next.cliOutput).toMatch(
19-
/\/dashboard\/another.*? [^0]{1,} [\w]{1,}B/
19+
/\/dashboard\/another.*? *?[^0]\d{1,} [\w]{1,}B/
2020
)
2121
})
2222
}

0 commit comments

Comments
 (0)