Open dkundel opened 4 years ago
There were numerous issues with jest+mock-fs. You might try the older jest version when that PR built successfully.
I tried to pin jest to the exact version I had used before but that still doesn't seem to work. It also seems to work locally just fine.
Same happening here. I got the same error when trying to read a file with fs.createReadStream()
, using jest 26.1.0.
@dkundel your PR passed CI. Did you do something, or it just recovered by itself?
Also running into this issue. Was anyone able to get a fix working?
Hey there! I have no clue if this is a mock-fs problem or a GitHub Actions problem, so I figured I'd start here.
We added a month back mock-fs to a project and it run flawlessly in GitHub Actions. You can see the successful PR here
Right now if I'm creating PRs the same validation fails even though we haven't changed anything there. See this PR as an example including some failed attempts of my trying to pin point the problem. Here's another one. In both cases it fails with the same problem:
You can find the code for the test here: https://github.com/twilio-labs/twilio-run/blob/master/__tests__/config/utils/env.test.ts
Any help would be appreciated.