test(core): disable npm audits in the test preload (#47222)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
dd417f1a6b
commit
03cb632435
2 changed files with 6 additions and 0 deletions
5
packages/core/test/preload.test.ts
Normal file
5
packages/core/test/preload.test.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { expect, test } from "bun:test"
|
||||
|
||||
test("disables public npm security audits", () => {
|
||||
expect(process.env.NPM_CONFIG_AUDIT).toBe("false")
|
||||
})
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
import path from "path"
|
||||
|
||||
process.env.OPENCODE_DB = ":memory:"
|
||||
process.env.NPM_CONFIG_AUDIT = "false"
|
||||
process.env.OPENCODE_MODELS_PATH = path.join(import.meta.dir, "plugin", "fixtures", "models-dev.json")
|
||||
process.env.OPENCODE_DISABLE_MODELS_FETCH = "true"
|
||||
|
|
|
|||
Loading…
Reference in a new issue