Fix crash when encountering an included directory which doesn't exist (#6497)

Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
This commit is contained in:
gbbosak 2025-08-22 15:49:35 -05:00 committed by GitHub
parent cfcf14fd06
commit 9a0722625b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 65 additions and 24 deletions

View file

@ -27,6 +27,7 @@ vi.mock('node:process', () => {
const mockProcess: Partial<NodeJS.Process> = {
exit: mockProcessExit,
platform: 'sunos',
cwd: () => '/fake/dir',
} as unknown as NodeJS.Process;
return {
...mockProcess,