mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-06 14:44:33 +00:00
test(core): disable npm audits in the test preload (#47170)
Co-authored-by: Hona <10430890+Hona@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
e536b9627e
commit
d431fedce5
2 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,10 @@ import path from "path"
|
|||
import { Global } from "@opencode-ai/util/global"
|
||||
|
||||
describe("Core test environment", () => {
|
||||
test("disables public npm security audits", () => {
|
||||
expect(process.env.NPM_CONFIG_AUDIT).toBe("false")
|
||||
})
|
||||
|
||||
test("isolates global home and XDG roots", () => {
|
||||
const home = process.env.OPENCODE_TEST_HOME
|
||||
expect(home).toBeDefined()
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
process.env.OPENCODE_DB = ":memory:"
|
||||
process.env.NPM_CONFIG_AUDIT = "false"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue