Skip to content

Commit 9613835

Browse files
authored
chore: fix test importing non typescript files (#3081)
1 parent 48cc729 commit 9613835

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit/imports.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ describe('importing mongodb driver', () => {
1919
const sourceFiles = walk(path.resolve(__dirname, '../../src'));
2020

2121
for (const sourceFile of sourceFiles) {
22+
if (!sourceFile.endsWith('.ts')) {
23+
continue;
24+
}
25+
2226
const sliceFrom = sourceFile.indexOf('src');
2327
it(`should import ${sourceFile.slice(sliceFrom)} directly without issue`, () => {
2428
execSync(`./node_modules/.bin/ts-node -e "require('${sourceFile}')"`);

0 commit comments

Comments
 (0)