mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use node protocol when importing builtins
This commit is contained in:
@@ -115,7 +115,7 @@ const packageJSON = {
|
||||
},
|
||||
};
|
||||
|
||||
jest.mock('fs', (): Partial<Record<string, jest.Mock>> => ({
|
||||
jest.mock('node:fs', (): Partial<Record<string, jest.Mock>> => ({
|
||||
cwd: jest.fn((): string => __dirname),
|
||||
existsSync: jest.fn((pth: string): boolean => typeof pth === 'string' && pth in files),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user