Skip to content

Commit 03cb632

Browse files
test(core): disable npm audits in the test preload (anomalyco#47222)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
1 parent dd417f1 commit 03cb632

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/core/test/preload.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { expect, test } from "bun:test"
2+
3+
test("disables public npm security audits", () => {
4+
expect(process.env.NPM_CONFIG_AUDIT).toBe("false")
5+
})

packages/core/test/preload.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import path from "path"
22

33
process.env.OPENCODE_DB = ":memory:"
4+
process.env.NPM_CONFIG_AUDIT = "false"
45
process.env.OPENCODE_MODELS_PATH = path.join(import.meta.dir, "plugin", "fixtures", "models-dev.json")
56
process.env.OPENCODE_DISABLE_MODELS_FETCH = "true"

0 commit comments

Comments
 (0)