Skip to content

Commit ed546c5

Browse files
committed
fix(cli): make sure to load .cjs and .mjs test files
Our lint rule tests didn't run at all o.0
1 parent 60a08a5 commit ed546c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/cli/src/testing/worker-internal.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export async function testingListFiles(testConfig) {
2424
return;
2525
}
2626

27-
if (!file.endsWith(".test.js")) {
27+
if (
28+
!file.endsWith(".test.js") &&
29+
!file.endsWith(".test.mjs") &&
30+
!file.endsWith(".test.cjs")
31+
) {
2832
return;
2933
}
3034

0 commit comments

Comments
 (0)