Skip to content

Commit 66d31c9

Browse files
committed
test(shadow): add missing getNodeDisableSigusr1Flags mock
The @socketsecurity/lib@1.3.4 update added getNodeDisableSigusr1Flags to the constants/node module. The npm-base.test.mts file was mocking this module but didn't include the new function, causing tests to fail when the code tried to call the undefined function.
1 parent 5ffb08e commit 66d31c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cli/src/shadow/npm-base.test.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ vi.mock('../constants/env.mts', () => ({
7474

7575
vi.mock('@socketsecurity/lib/constants/node', () => ({
7676
getExecPath: vi.fn(() => '/usr/bin/node'),
77+
getNodeDisableSigusr1Flags: vi.fn(() => ['--no-inspect']),
7778
getNodeNoWarningsFlags: vi.fn(() => ['--no-warnings']),
7879
getNodeDebugFlags: vi.fn(() => ['--inspect=0']),
7980
getNodeHardenFlags: vi.fn(() => ['--frozen-intrinsics']),

0 commit comments

Comments
 (0)