Closed YonatanKra closed 5 years ago
Got it! Just found out these lines in the documentation:
createCwd - boolean Create a directory for process.cwd(). This is true by default.
createTmp - boolean Create a directory for os.tmpdir(). This is true by default.
So there's no need to set the root, hence my beforeAll
should be like this:
mockfs({
"gfuncs.conf.json": JSON.stringify(config)
})
Hi, Here's my code:
Here's my spec:
I get the following error:
ENOENT, no such file or directory '\\?\C:\configRoot\my.conf.json'
Any idea how to get over it? Thanks!