Skip to content

Commit

Permalink
feat: filter out integ tests of th the same name
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Jan 4, 2023
1 parent ad7be9a commit 6af5c14
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,11 @@ export class IntegrationTests {
fileName,
appCommand,
})),
);
)
// Remove tests with duplicate names, giving precedence in lexicographic order
// Which ensures precedence of compiled .js files over their .ts source
.sort((a, b) => a.testName.localeCompare(b.testName))
.filter((a, idx, allTests) => allTests.findIndex(b => (b.testName === a.testName)) === idx);

return this.filterTests(discoveredTests, options.tests, options.exclude);
}
Expand Down

0 comments on commit 6af5c14

Please sign in to comment.