Here's my folder structure
- componentA
- specs
- file1.js
- file2.js
- componentB
- specs
- file1.js
- file2.js
I want to require each file under each specs dir from both componentA and B. How would the regex look like?
something like: require(**/specs/*.js) ?
So this fixed it for me:
/.*\/specs\/.*\.js/