Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ if(filterPath) {

for (const testCategory of testCategories) {
test(testCategory, async () => {
let tests = fs.readdirSync(path.join(__dirname, 'tests', testCategory)).sort((a, b) => parseInt(a) - parseInt(b));
// some tests write scratch directories next to themselves, and a leftover one
// would otherwise be read as if it were a test file
let tests = fs.readdirSync(path.join(__dirname, 'tests', testCategory))
.filter(testName => testName.endsWith('.js'))
.sort((a, b) => parseInt(a) - parseInt(b));
for (const testName of tests) {
if(filterPath && filterPath.endsWith('.js')) {
if(path.basename(testName) !== path.basename(filterPath)) {
Expand Down
Loading