diff --git a/tests/grype_command.test.js b/tests/grype_command.test.js index 3da4b5a8..de1c1b5f 100644 --- a/tests/grype_command.test.js +++ b/tests/grype_command.test.js @@ -99,6 +99,32 @@ describe("Grype command args", () => { ]); }); + it("is invoked with config file", async () => { + const args = await mockRun({ + image: "asdf", + "fail-build": "false", + "output-file": "the-output-file", + "output-format": "json", + "severity-cutoff": "low", + version: "0.6.0", + "only-fixed": "false", + "add-cpes-if-none": "false", + "by-cve": "false", + "config-file-path": "path/to/config", + }); + expect(args).toEqual([ + "-o", + "json", + "--file", + "the-output-file", + "--config", + "path/to/config", + "--fail-on", + "low", + "asdf", + ]); + }); + it("adds missing CPEs if requested", async () => { const args = await mockRun({ image: "asdf",