RealOrangeOne / react-native-mock

A fully mocked and test-friendly version of react native (maintainers wanted)
MIT License
570 stars 153 forks source link

Enable nodir for glob.sync #160

Closed mnt closed 6 years ago

mnt commented 6 years ago

This is to prevent the following error Error: EISDIR: illegal operation on a directory, read. Where certain packages end with .js such as https://github.com/indutny/asn1.js.

The following library has such dependencies which made me found this error: └─┬ @storybook/react-native@3.3.14 └─┬ webpack@3.11.0 └─┬ node-libs-browser@2.1.0 └─┬ crypto-browserify@3.12.0 └─┬ browserify-sign@4.0.4 └─┬ parse-asn1@5.1.0 └── asn1.js@4.10.1