Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
fix: check `find` binary supports the `-iname` parameter #10308
Wrote included test first that failed. Test passes with changes.
I think so but when I removed
and ran the test suite on Windows I started getting test failures like:
so I was a bit hesitant to remove that check. Now I have some working code (the PR as it currently is) I'll take a look again (this is my first time with Jest and TypeScript so I've had to learn a lot to get to this point).
Seems we should normalize the separator in the paths a bit. We've used
Thank you so much for spending the time!
The `-iname` parameter is a non-POSIX extension and may not be supported by a POSIX compliant find binary. Add a check that the parameter is supported when determining whether to use the native find binary.