stateinputprovider with pending test cases fix

This commit is contained in:
Sankalp Kotewar authored and GitHub committed 2023-01-02 07:29:20 +00:00
1 parent 365406cb70
commit 5b7eeecaeb
9 files changed
+53 -28

No files matched your search

+2 -6
View File
@@ -11,12 +11,8 @@ jest.mock("@actions/cache");
jest.mock("../src/utils/actionUtils");
beforeAll(() => {
jest.spyOn(core, "getInput").mockImplementation((name, options) => {
return jest.requireActual("@actions/core").getInput(name, options);
});
jest.spyOn(core, "setOutput").mockImplementation((key, value) => {
return jest.requireActual("@actions/core").getInput(key, value);
jest.spyOn(core, "getInput").mockImplementation(name => {
return testUtils.getInput(name);
});
jest.spyOn(actionUtils, "getInputAsArray").mockImplementation(