chore: fix folder trust tests (#10636)

This commit is contained in:
Adam Weidman
2025-10-07 16:29:38 +02:00
committed by GitHub
parent 69f93f852e
commit c4656fb063
2 changed files with 15 additions and 9 deletions

View File

@@ -17,8 +17,9 @@ vi.mock('../../utils/processUtils.js', () => ({
const mockedExit = vi.hoisted(() => vi.fn());
const mockedCwd = vi.hoisted(() => vi.fn());
vi.mock('process', async () => {
const actual = await vi.importActual('process');
vi.mock('node:process', async () => {
const actual =
await vi.importActual<typeof import('node:process')>('node:process');
return {
...actual,
exit: mockedExit,