26 lines · 801 B · TypeScript
RawDownload
import { sign as signApplication, type SignOptions } from "@electron/osx-sign";import { expect, it, vi } from "vite-plus/test"; import sign from "./sign-macos.ts"; vi.mock("@electron/osx-sign", () => ({ sign: vi.fn() })); it("batches codesign calls without changing existing signing options", async () => {  const options = {    app: "/tmp/T3 Code.app",    identity: "Developer ID Application: T3 Tools, Inc.",    keychain: "/tmp/t3code.keychain",    provisioningProfile: "/tmp/t3code.provisionprofile",    optionsForFile: () => ({      entitlements: "/tmp/t3code.entitlements.plist",      hardenedRuntime: true,    }),  } satisfies SignOptions;   await sign(options);   expect(signApplication).toHaveBeenCalledExactlyOnceWith({    ...options,    batchCodesignCalls: true,  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t