Closed gustavnikolaj closed 8 years ago
Looks good to me. maybeRealPath
should probably be made external and be tested separately
Even though the implementation is Obviously Correct[TM] I agree with @Munter that it'd be nice to have a test.
I don't test the use of maybeRealPath inside the middleware itself, but I do test it in isolation. Do you think that is enough? :-)
We had a problem where files from an npm linked package wasn't triggering rebuilds properly. This fixes it so that the server will watch the real files and not the symlinks.