diff --git a/tests/index.test.js b/tests/index.test.js index 67a2ee14..6459edf5 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -2,6 +2,12 @@ jest.mock("@actions/core"); jest.mock("@actions/exec"); jest.mock("@actions/tool-cache"); +beforeAll(async () => { + const { grypeVersion } = require("../GrypeVersion"); + const { installGrype } = require("../index"); + await installGrype(grypeVersion); +}); + const core = require("@actions/core"); const path = require("path"); const fs = require("fs");