We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
given the following code...
const FAKE_EMPTY_PATH = 'fake-empty-path'; const FAKE_PATH = 'fake-path'; const FAKE_JSON_FILE_NAME = 'publication'; const FAKE_TEXT_FILE_NAME = 'myfile'; const FAKE_PATH_2 = 'fake-path-2'; const FAKE_OBJECT_CONTENT = { key: "value" }; const STUB_CONTENT = { key1: "value1", key2: "value2", } const FAKE_TEXT_CONTENT = 'this is an string content'; const mockOptions = { [FAKE_EMPTY_PATH]: {}, [FAKE_PATH]: { [FAKE_JSON_FILE_NAME]: JSON.stringify(FAKE_OBJECT_CONTENT), [FAKE_TEXT_FILE_NAME]: FAKE_TEXT_CONTENT, anotherFile: '{}' }, [FAKE_PATH_2]: { [FAKE_JSON_FILE_NAME]: STUB_CONTENT } }; mockFS(mockOptions); const stat = fs.lstatSync(path); const isDirectory = stat.isDirectory(); // false in node 8.2.1, true in node 7.9.0
The text was updated successfully, but these errors were encountered:
+1
I wish i could figure out what is the cause of this, but i can't seem to figure it out
Sorry, something went wrong.
This has been fixed in my library by updating to the latest mock-fs version.
mock-fs
Confirm fixed in latest version.
No branches or pull requests
given the following code...
The text was updated successfully, but these errors were encountered: