Skip to content

Commit

Permalink
fixed dynamic imports unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
shairez committed Dec 24, 2024
1 parent 8b34bba commit a11810a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/qwik/src/optimizer/src/plugins/vite.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,15 @@ suite('convertManifestToBundleGraph', () => {
},
} as Record<string, QwikBundle>,
} 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',
]);
});
});

0 comments on commit a11810a

Please sign in to comment.