Skip to content

Commit

Permalink
Release 0.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
inluxc committed Dec 22, 2024
1 parent 39dd742 commit 4b123f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playwright-xray",
"version": "0.6.9",
"version": "0.6.10",
"description": "XRAY reporter for the Playwright",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ class XrayReporter implements Reporter {
if (this.projectsToExclude !== undefined && typeof this.projectsToExclude !== 'string' && this.projectsToExclude.length > 1) {
regexOfExcludedProjects = new RegExp(`^(${this.projectsToExclude.join('|')})$`);
projectsToReport = config.projects.filter((p) => !regexOfExcludedProjects.test(p.name));
// If the projectsToExclude is a string, we will use the regex to exclude the projects
// If the projectsToExclude is a string, we will use the regex to exclude the projects
} else if (this.projectsToExclude !== undefined && typeof this.projectsToExclude !== 'string') {
regexOfExcludedProjects = new RegExp(`^(${this.projectsToExclude.join('')})$`);
projectsToReport = config.projects.filter((p) => !regexOfExcludedProjects.test(p.name));
// If the projectsToExclude is a string, we will use the regex to exclude the projects
// If the projectsToExclude is a string, we will use the regex to exclude the projects
} else if (this.projectsToExclude !== undefined && typeof this.projectsToExclude === 'string') {
regexOfExcludedProjects = new RegExp(`^(${this.projectsToExclude})$`);
projectsToReport = config.projects.filter((p) => !regexOfExcludedProjects.test(p.name));
// If the projectsToExclude is not defined, we will report all the projects
// If the projectsToExclude is not defined, we will report all the projects
} else {
projectsToReport = config.projects;
}
Expand Down

0 comments on commit 4b123f4

Please sign in to comment.