Skip to content

Commit f6fa8b6

Browse files
committed
test(glob hotfix): add tests to ensure multiple glob patterns work
test checks to ensure hotfix does not regress
1 parent 23d8a06 commit f6fa8b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

__tests__/exportFunctions.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,9 @@ describe('exportFunctions() function exporter test suite', () => {
9393
expect(result).toHaveProperty(filePathToPropertyPath(testFiles[1]));
9494
expect(Object.keys(result)).toHaveLength(1);
9595
});
96+
97+
it('will still work with glob match prepending ./ as in ./**/*.js', () => {
98+
expect(exportTestFactory({ searchGlob: './**/*.func.ts' })).toHaveProperty(filePathToPropertyPath(testFiles[1]));
99+
expect(exportTestFactory({ searchGlob: '**/*.func.ts' })).toHaveProperty(filePathToPropertyPath(testFiles[1]));
100+
});
96101
});

0 commit comments

Comments
 (0)