• Sign In



  • Categories

    Extension Details



    Readme

    Vitest Extension

    This extension provides integration with the Vitest javascript testing framework.

    It displays tests in a sidebar and provides inline issue reports for failed tests.

    Sidebar information

    Inline issues

    Adapted from Cameron Little's Jest Extension.

    Requirements

    • Vitest@3

    Configuration

    Workspace and global preferences support configuring a custom vitest executable. Use this, for example, if you install vitest globally or install node dependencies in a subdirectory of your project.

    Workspace preferences support configuring a custom vitest working directory. Use this, for example, if your nodejs project is in a subdirectory of your project.

    Release Notes

    Changelog

    0.9.2

    • Added version check (requires vitest@3 onwards)
    • updated tests
    • added more summary information about the run (like vitest cli tool)
    • updated dependencies

    v0.9.0

    Known bugs

    • not all tests are reported on partial run (workaround: set to run all tests)
    • issues are not always reported
    • syntax issues in tests can stop tree view populating
    • requires vitest@3