You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specification of the mtime in a directory call gets ignored, all other timestamps are working as expected.
import { statSync } from "fs";
import mock from "mock-fs";
import { directory, file } from "mock-fs/lib/filesystem";
mock({
"C:\\test": directory({mtime: new Date(1), ctime: new Date(1), atime: new Date(1), birthtime: new Date(1)}),
"C:\\test\\test.txt": file({mtime: new Date(1), ctime: new Date(1), atime: new Date(1), birthtime: new Date(1)}),
});
console.log(statSync("C:\\test"));
console.log(statSync("C:\\test\\test.txt"));
Setup:
Node: 14.17.1
mock-fs: 5.0.0
Specification of the mtime in a directory call gets ignored, all other timestamps are working as expected.
Result:
The text was updated successfully, but these errors were encountered: