Open Mesqalito opened 5 years ago
same here
in v24 it error, but in v23 it work
i think need to check this
Error: EISDIR: illegal operation on a directory, realpath 'T:\TEMP'
at Function.realpathSync.native (fs.js:1513:3)
at realpathSync (\node_modules
\realpath-native\index.js:29:28)
at getCacheDirectory (\node_mo
dules\jest-config\build\getCacheDirectory.js:53:32)
at Object.<anonymous> (\node_m
odules\jest-config\build\Defaults.js:40:50)
at Module._compile (internal/modules/cjs/loader.js:774:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:1
0)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:681:19)
Hi, I still have this problem. anyone plan to push 'bluelovers' pr?
yes, i have the same problem, anyone can give a hand?
fs.realpathSync.native can't read ramdisk path. Here are the quick fix:
\node_modules\jest-util\build\tryRealpath.js
function tryRealpath(path) {
try {
if(path==='R:\\Temp'){ //your temp folder path
return path;
}
path = _gracefulFs().realpathSync.native(path);
} catch (error) {
but may be use "realpathSync" replace "realpathSync.native" can solve it too, but it may make some new problem...
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.
This can be fixed probably by reusing #6925 which solved the same problem in a different place.
🐛 Bug Report
Jest fails on start with error
Error: EISDIR: illegal operation on a directory, realpath 'B:\Temp'
when windows temp dir is set on a RAM driveLast working version
Worked in 23.6.0 Stopped working in 24.1.0
To Reproduce
npm run test
Actual behavior
I get an error like this:
Expected behavior
I expect jest to run tests.
Run
npx envinfo --preset jest