We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5315140 commit 4492c5cCopy full SHA for 4492c5c
tests/helper/test-discovery.js
@@ -3,6 +3,7 @@
3
const fs = require('fs');
4
const path = require('path');
5
6
+const SUPPORTED_TEST_FILE_EXT = new Set('.js', '.test');
7
8
module.exports = {
9
@@ -94,7 +95,8 @@ module.exports = {
94
95
getAllFiles(src) {
96
return fs.readdirSync(src)
97
.filter(fileName => {
- return fs.statSync(path.join(src, fileName)).isFile();
98
+ return SUPPORTED_TEST_FILE_EXT.has(path.extname(fileName))
99
+ && fs.statSync(path.join(src, fileName)).isFile();
100
})
101
.map(fileName => {
102
return path.join(src, fileName);
0 commit comments