Make a file test/utils/test-file and then run the following code:
const fg = require('fast-glob');
console.log(fg.globSync('test(/utils/**)'));
console.log(fg.globSync('test/utils/**'));
It will print:
[]
[ 'test/utils/test-file' ]
I would expect it to print:
[ 'test/utils/test-file' ]
[ 'test/utils/test-file' ]
Tracked this down to an issue in picomatch, which I filed there: micromatch/picomatch#142
I thought I'd still file an issue here in case it's helpful and you were interested in trying to resolve it either here or upstream, but feel free to close if the upstream issue is sufficient
Make a file
test/utils/test-fileand then run the following code:It will print:
I would expect it to print:
Tracked this down to an issue in
picomatch, which I filed there: micromatch/picomatch#142I thought I'd still file an issue here in case it's helpful and you were interested in trying to resolve it either here or upstream, but feel free to close if the upstream issue is sufficient