Unverified Commit ac95a202 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

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
parent dba978f4
......@@ -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/
)
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment