From 4af0105a894088fafc6d4e5d560b07d32703de89 Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Tue, 24 Dec 2024 02:40:50 +0200 Subject: [PATCH] fixed dynamic imports unit test --- packages/qwik/src/optimizer/src/plugins/vite.unit.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/qwik/src/optimizer/src/plugins/vite.unit.ts b/packages/qwik/src/optimizer/src/plugins/vite.unit.ts index f9444683d36..4dad670fda8 100644 --- a/packages/qwik/src/optimizer/src/plugins/vite.unit.ts +++ b/packages/qwik/src/optimizer/src/plugins/vite.unit.ts @@ -478,6 +478,15 @@ suite('convertManifestToBundleGraph', () => { }, } as Record, } as QwikManifest; - expect(convertManifestToBundleGraph(manifest)).toEqual(['a.js', 2, 'b.js', 'c.js']); + expect(convertManifestToBundleGraph(manifest)).toEqual([ + 'a.js', + 4, + -1, + 7, + 'b.js', + -1, + 7, + 'c.js', + ]); }); });