mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
test(plugins): align jiti loader cache expectations
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user