Skip to content

Commit ff27bfe

Browse files
author
Jamie Rothfeder
committed
Fix ordering of params.
1 parent 1b7d6a4 commit ff27bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apptesting/parseTestFiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function parseTestFiles(
4848
}
4949
for (const rawTestDef of parsedFile.tests) {
5050
if (!nameFilterFn(rawTestDef.testName)) continue;
51-
const testDef = toTestDef(rawTestDef, targetUri, defaultConfig);
51+
const testDef = toTestDef(rawTestDef, defaultConfig, targetUri);
5252
results.push(testDef);
5353
}
5454
} catch (ex) {
@@ -65,7 +65,7 @@ export async function parseTestFiles(
6565
return parseTestFilesRecursive(dir);
6666
}
6767

68-
function toTestDef(testDef: any, targetUri?: string, defaultConfig: any): TestCaseInvocation {
68+
function toTestDef(testDef: any, defaultConfig: any, targetUri?: string): TestCaseInvocation {
6969
const steps = testDef.steps ?? [];
7070
const route = testDef.testConfig?.route ?? defaultConfig?.route ?? "";
7171
const browsers: Browser[] = testDef.testConfig?.browsers ??

0 commit comments

Comments
 (0)