Skip to content

Conversation

@P-Courteille
Copy link
Contributor

📝 Description

This PR is a fix for issue 990.


🐛 Bug

The clean script from visual reporter doesn't work in Windows
"clean": "rimraf coverage build *.tsbuildinfo",

Because pathArg will refuse a path with "*" without the correct option.

    if (platform === 'win32') {
        const badWinChars = /[*|"<>?:]/;
        const { root } = parse(path);
        if (badWinChars.test(path.substring(root.length))) {
            throw Object.assign(new Error('Illegal characters in path.'), {
                path,
                code: 'EINVAL',
            });
        }
    }

🛠️ Solution

Replace:
"clean": "rimraf coverage build *.tsbuildinfo"
By:
"clean": "rimraf coverage build --glob *.tsbuildinfo"

@changeset-bot
Copy link

changeset-bot bot commented Jul 22, 2025

🦋 Changeset detected

Latest commit: 566eeca

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@wdio/visual-reporter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@wswebcreation wswebcreation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@wswebcreation wswebcreation merged commit 3dbfa0e into webdriverio:main Jul 23, 2025
14 of 19 checks passed
@wdio-bot
Copy link
Contributor

Hey P-Courteille 👋

Thank you for your contribution to WebdriverIO! Your pull request has been marked as an "Expensable" contribution.

We've sent you an email with further instructions on how to claim your expenses from our development fund.
Please make sure to check your spam folder as well. If you have any questions, feel free to reach out to us at expense@webdriver.io or in the contributing channel on Discord.

We are looking forward to more contributions from you in the future 🙌

Have a nice day,
The WebdriverIO Team 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants