test(plugins): align jiti loader cache expectations

This commit is contained in:
Vincent Koc
2026-04-15 12:14:34 +01:00
parent 890e299e30
commit c5b3f00d11

View File

@@ -75,12 +75,20 @@ describe("getCachedPluginJitiLoader", () => {
expect(createJiti).toHaveBeenNthCalledWith(
1,
"file:///repo/src/plugins/public-surface-loader.ts",
expect.objectContaining({ tryNative: true }),
expect.objectContaining({
tryNative: false,
interopDefault: true,
alias: expect.any(Object),
}),
);
expect(createJiti).toHaveBeenNthCalledWith(
2,
"file:///repo/src/plugins/bundled-channel-config-metadata.ts",
expect.objectContaining({ tryNative: true }),
expect.objectContaining({
tryNative: false,
interopDefault: true,
alias: expect.any(Object),
}),
);
expect(cache.size).toBe(2);
});