Skip to content

Commit 080cf5b

Browse files
committed
fix(node): add new statfs exports
1 parent 2fc33a8 commit 080cf5b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/runtime/node/fs/_classes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ export const WriteStream: typeof fs.WriteStream =
1616
export const FileReadStream = mock.__createMock__("fs.FileReadStream");
1717

1818
export const FileWriteStream = mock.__createMock__("fs.FileWriteStream");
19+
20+
export const StatsFs: typeof fs.StatsFs = mock.__createMock__("fs.StatsFs");

src/runtime/node/fs/_fs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const truncate: typeof fs.truncate = callbackify(fsp.truncate);
5656
export const unlink: typeof fs.unlink = callbackify(fsp.unlink);
5757
export const utimes: typeof fs.utimes = callbackify(fsp.utimes);
5858
export const writeFile: typeof fs.writeFile = callbackify(fsp.writeFile);
59+
export const statfs: typeof fs.statfs = callbackify(fsp.statfs);
5960

6061
export const close: typeof fs.close = notImplementedAsync("fs.close");
6162
export const createReadStream: typeof fs.createReadStream = notImplementedAsync(
@@ -142,3 +143,4 @@ export const writeFileSync: typeof fs.writeFileSync =
142143
notImplemented("fs.writeFileSync");
143144
export const writeSync: typeof fs.writeSync = notImplemented("fs.writeSync");
144145
export const writevSync: typeof fs.writevSync = notImplemented("fs.writevSync");
146+
export const statfsSync: typeof fs.statfsSync = notImplemented("fs.statfsSync");

src/runtime/node/fs/promises/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ export const appendFile: typeof fsp.appendFile =
3333
notImplemented("fs.appendFile");
3434
export const readFile: typeof fsp.readFile = notImplemented("fs.readFile");
3535
export const watch: typeof fsp.watch = notImplemented("fs.watch");
36+
export const statfs: typeof fsp.statfs = notImplemented("fs.statfs");

0 commit comments

Comments
 (0)