Skip to content

Issue 990 #991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

P-Courteille
Copy link

📝 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"

@P-Courteille P-Courteille changed the base branch from main to ws/rewrite-core July 19, 2025 16:28
@wswebcreation wswebcreation deleted the branch webdriverio:ws/rewrite-core July 22, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants