repoman icon indicating copy to clipboard operation
repoman copied to clipboard

test: mock-fs does not work as expected for Node >20.4

Open stennie opened this issue 1 year ago • 1 comments

mock-fs is currently used for test/generator/local.js. Tests pass in Node 20.4 and earlier, but fail in more recent versions of Node.

Possible related to: https://github.com/tschaub/mock-fs/issues/377

Since this is a very limited use case, I think it could be resolved by either:

  • creating a sample directory to avoid the need for monkey patching core fs behaviour
  • using memfs or an alternative package

stennie avatar Oct 30 '23 23:10 stennie

I totally agree. The sample directory sounds like the most straightforward option to me.

basti1302 avatar Oct 31 '23 07:10 basti1302