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
I've tried to require it in my node.js test but I'm getting this error:
Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'read')
2 | const { default: axios } = require('axios');
3 | const fs = require('fs');
> 4 | const mockFs = require('mock-fs');
I haven't seen anything about this error, nor using 'mock-fs' on WSL1.. I've removed the const fs = require('fs') and it still errors before running any tests.
Is there something I'm doing wrong or is it not compatible with WSL1?
The text was updated successfully, but these errors were encountered:
Might be the same as #344 , or at least related to it? I'm getting the error too (see my comment in that issue), but I'm using Ubuntu. As far as I could find out, it seems to happen only with yarn -- are you using yarn too?
I've tried to
require
it in my node.js test but I'm getting this error:I haven't seen anything about this error, nor using 'mock-fs' on WSL1.. I've removed the
const fs = require('fs')
and it still errors before running any tests.Is there something I'm doing wrong or is it not compatible with WSL1?
The text was updated successfully, but these errors were encountered: