Skip to content

Migrate CLI testing framework from jest to vitest #1075

@willosborne

Description

@willosborne

Currently CLI tests are built on Jest, which is a JS framework not built for Typescript projects.

This causes a few issues:

  • slow test performance - pre-test compile needed
  • complex config to ensure it's testing the post-compile code
  • editor plugins break in VSCode, meaning that we can't debug/run tests from in the ide

Suggested fix is to migrate to vitest, a much more modern, TS native library that we already use for the CALMHub UI. This should be a mostly painless rewrite since it's Jest-compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions