Skip to content
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

fix: ENOENT assets when htmldir exists #2701

Merged
merged 1 commit into from Jan 19, 2023
Merged

Commits on Jan 19, 2023

  1. fix: ENOENT assets when htmldir exists

    if htmlDir already exists the previous code would not create the assets
    dir, this can cause ENOENT errors whenever htmlDir exists, but assets
    does not - for instance when outputing junit and html to the same parent
    folder
    
    ```
    vitest --reporter junit html --outputFile.html tests/ --outputFile.junit tests/junit.xml
    ```
    
    I don't understand why the previous code was checking existsSync before
    mkdir -p. My best guess is performance, but it's not going to have a
    significant effect.
    everett1992 authored and Caleb ツ Everett committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    8f7b971 View commit details
    Browse the repository at this point in the history