From 4fae6a85c091a286111786a2b2ba5d3d9314dc70 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Sun, 25 Sep 2022 21:49:09 -0400 Subject: [PATCH] test: fix test expectation --- playground/react/__tests__/react.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playground/react/__tests__/react.spec.ts b/playground/react/__tests__/react.spec.ts index 1911ad7558807a..cfbbf9962419dd 100644 --- a/playground/react/__tests__/react.spec.ts +++ b/playground/react/__tests__/react.spec.ts @@ -26,9 +26,11 @@ test('should only hmr files with exported react components', async () => { ) await untilUpdated(() => page.textContent('#parent'), 'Updated') expect(browserLogs).toMatchObject([ + '[vite] hot updated: /hmr/no-exported-comp.jsx', '[vite] hot updated: /hmr/parent.jsx', 'Parent rendered' ]) + browserLogs.length = 0 }) test.runIf(isServe)(