From 6fbc2e0d45a2454743607c769f1570b511be7973 Mon Sep 17 00:00:00 2001 From: wtto00 Date: Sun, 20 Oct 2024 01:02:13 +0800 Subject: [PATCH] fix: test match output of build --- playground/tests/build.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/tests/build.test.ts b/playground/tests/build.test.ts index ac54396..39c51d7 100644 --- a/playground/tests/build.test.ts +++ b/playground/tests/build.test.ts @@ -8,7 +8,7 @@ describe('build', () => { const output = spawnSync('pnpm', ['-C', 'playground', 'build'], { shell: true, encoding: 'utf8' }) expect(output.status).toBe(0) expect(output.error).toBeUndefined() - expect(output.stdout).toMatch(/✓ built in \d+ms/) + expect(output.stdout).toMatch(/✓ built in \d+m?s/) const dir = resolve(import.meta.dirname, '../dist/assets') const assets = readdirSync(dir)