Skip to content

Commit

Permalink
chore: Remove printing audit-ci version
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnturner committed Feb 3, 2023
1 parent c29ff2f commit 7bb7b2e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 47 deletions.
7 changes: 7 additions & 0 deletions examples/yarn-classic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Summary, Allowlist, yarnAudit } from "../lib/index";

const result = await yarnAudit({
low: true,
allowlist: [],
});
console.log(result);
14 changes: 0 additions & 14 deletions lib/audit-ci-version.ts

This file was deleted.

3 changes: 0 additions & 3 deletions lib/audit-ci.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import audit from "./audit";
import { printAuditCiVersion } from "./audit-ci-version";
import { green, red } from "./colors";
import { runYargs } from "./config";

Expand All @@ -9,8 +8,6 @@ export async function runAuditCi() {
const { "package-manager": packageManager, "output-format": outputFormat } =
auditCiConfig;

printAuditCiVersion(outputFormat);

try {
await audit(auditCiConfig);
if (outputFormat === "text") {
Expand Down
30 changes: 0 additions & 30 deletions test/audit-ci-version.spec.js

This file was deleted.

20 changes: 20 additions & 0 deletions test/yarn-workspace/main.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const Allowlist = require("../../dist/allowlist").default;

const audit = require("../../dist/audit").default;

describe("main", () => {
it("should be a function", async () => {
await audit({
"package-manager": "yarn",
levels: {
low: true,
moderate: true,
high: true,
critical: true,
},
allowlist: new Allowlist([]),
low: true,
"report-type": "important",
});
});
});

0 comments on commit 7bb7b2e

Please sign in to comment.