Skip to content

Commit 5fb5fd6

Browse files
committed
Accept ".js" extensions for Mocha test files
1 parent 0514e78 commit 5fb5fd6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backends/src/ts/mocha/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ impl ParseLow for Mocha {
281281
.into_iter()
282282
.filter_entry(|entry| {
283283
let path = entry.path();
284-
!path.is_file() || path.extension() == Some(OsStr::new("ts"))
284+
!path.is_file()
285+
|| path.extension() == Some(OsStr::new("js"))
286+
|| path.extension() == Some(OsStr::new("ts"))
285287
}),
286288
)
287289
}

0 commit comments

Comments
 (0)