mirror of
https://github.com/tobi/qmd.git
synced 2026-09-14 20:27:06 +08:00
5528b14abe
On macOS /tmp is a symlink to /private/tmp. mkdtemp returns /tmp/... but getRealPath(resolve(pwd)) in collectionAdd resolves symlinks and stores /private/tmp/... in the DB. toVirtualPath and --full-path resolution then fail because the test-side collectionDir path doesn't match the DB-side path. Fix by calling realpathSync on the test collectionDir before passing it to CLI commands and assertions.