test: fix typing in inputs.test.ts

This commit is contained in:
Alfi Maulana
2024-08-06 15:37:03 +07:00
parent f1bf9f4a5d
commit dc5be9d408

View File

@@ -134,7 +134,10 @@ describe("get action inputs", () => {
const { getInputs } = await import("./inputs.js");
const core = await import("@actions/core");
const booleanInputs = { "run-build": true, ...testCase.booleanInputs };
const booleanInputs: Record<string, boolean> = {
"run-build": true,
...testCase.booleanInputs,
};
jest.mocked(core.getBooleanInput).mockImplementation((name) => {
return booleanInputs[name] ?? false;
});