mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
25 lines
588 B
TypeScript
25 lines
588 B
TypeScript
|
export const newFSWatcherMock = () => {
|
||
|
return {
|
||
|
options: {},
|
||
|
on: jest.fn(),
|
||
|
add: jest.fn(),
|
||
|
unwatch: jest.fn(),
|
||
|
getWatched: jest.fn(),
|
||
|
close: jest.fn(),
|
||
|
addListener: jest.fn(),
|
||
|
removeListener: jest.fn(),
|
||
|
removeAllListeners: jest.fn(),
|
||
|
eventNames: jest.fn(),
|
||
|
rawListeners: jest.fn(),
|
||
|
listeners: jest.fn(),
|
||
|
emit: jest.fn(),
|
||
|
listenerCount: jest.fn(),
|
||
|
off: jest.fn(),
|
||
|
once: jest.fn(),
|
||
|
prependListener: jest.fn(),
|
||
|
prependOnceListener: jest.fn(),
|
||
|
setMaxListeners: jest.fn(),
|
||
|
getMaxListeners: jest.fn(),
|
||
|
};
|
||
|
};
|