diff --git a/src/plugins/doctor-contract-registry.test.ts b/src/plugins/doctor-contract-registry.test.ts index 3718d7ecc3c..f73366c7019 100644 --- a/src/plugins/doctor-contract-registry.test.ts +++ b/src/plugins/doctor-contract-registry.test.ts @@ -117,11 +117,7 @@ describe("doctor-contract-registry module loader", () => { expect(mocks.createJiti.mock.calls[0]?.[0]).toBe( pathToFileURL(contractApiPath, { windows: true }).href, ); - expect(mocks.createJiti.mock.calls[0]?.[1]).toEqual( - expect.objectContaining({ - tryNative: false, - }), - ); + expect(mocks.createJiti.mock.calls[0]?.[1]?.tryNative).toBe(false); }); it("prefers doctor-contract-api over the broader contract-api surface", () => { @@ -257,9 +253,12 @@ describe("doctor-contract-registry module loader", () => { message: "load path contract", }, ]); - expect(mocks.loadPluginManifestRegistry).toHaveBeenCalledWith( - expect.objectContaining({ config }), - ); + expect(mocks.loadPluginManifestRegistry).toHaveBeenCalledWith({ + config, + workspaceDir: "/workspace", + env: {}, + includeDisabled: true, + }); }); it("reads doctor contracts from the current manifest registry on each call", () => {