pnpm / supi

Fast, disk space efficient installation engine. Used by pnpm
MIT License
24 stars 5 forks source link

Test for packageImportMethod = reflink #33

Open etamponi opened 6 years ago

etamponi commented 6 years ago

In order to at least unit-test the reflink path, I would like to use a library like mockery to mock child_process and be able to run installPkgs with packageImportMethod: reflink.

etamponi commented 6 years ago

Ideally testing the real thing would be better, but reflinks are only supported by CoW filesystems, and I only know btrfs and ocfs2.

etamponi commented 6 years ago

A fun way to do it would be to create a blob, format it with btrfs, mount it, prepare the project and store on that mount... that would work (on linux), but mounting requires root privileges