From 3fdd29418a2400f804ab279c4ea5ad43fe81c92c Mon Sep 17 00:00:00 2001 From: JadenSimon Date: Thu, 27 Jun 2024 20:10:58 -0700 Subject: [PATCH] Fix fixture test runner --- src/testing/internal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/internal.ts b/src/testing/internal.ts index c46f147..b502c16 100644 --- a/src/testing/internal.ts +++ b/src/testing/internal.ts @@ -89,7 +89,7 @@ async function findTests(testDir: string, patterns = ['**/*.ts']) { export async function main(...patterns: string[]) { const testDir = path.resolve(getWorkingDir(), 'test', 'fixtures') - const tests = await findTests(testDir, patterns) + const tests = await findTests(testDir, patterns.length === 0 ? undefined : patterns) const failures: [string, unknown][] = [] for (const test of tests) {