We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7ef0e0 commit e1aba23Copy full SHA for e1aba23
1 file changed
examples/app-react-crud/mocks/node-polyfills.ts
@@ -51,12 +51,19 @@ export const basename = (path) => path;
51
export const extname = (path) => '';
52
export const sep = '/';
53
export const relative = () => '';
54
+export const isAbsolute = () => false;
55
+export const normalize = (p: string) => p;
56
57
export const posix = {};
58
export const win32 = {};
59
60
// fs/promises and other missing exports
61
export const open = async () => ({ close: async () => {} });
62
+export class Stats {
63
+ isDirectory() { return false; }
64
+ isFile() { return false; }
65
+ isSymbolicLink() { return false; }
66
+}
67
export const watchFile = () => {};
68
export const unwatchFile = () => {};
69
0 commit comments