1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-18 17:41:18 +01:00

Update main.test.js

This commit is contained in:
Minionguyjpro
2024-01-02 20:56:56 +01:00
committed by GitHub
parent 1bbec1bd2e
commit ff5b3f784d

View File

@@ -1,9 +1,6 @@
const core = require("@actions/core");
// Mocking the entire @actions/core module
jest.mock("@actions/core");
// Mocking specific methods
// Mocking specific methods of @actions/core
core.getInput = jest.fn().mockReturnValueOnce("options").mockReturnValueOnce("path");
core.setFailed = jest.fn();
@@ -19,7 +16,7 @@ jest.mock('child_process', () => ({
}),
}));
// Now, you can import and test your main.js module
// Importing the main module after the mocks are set
const main = require("../src/main");
// Add your test cases here