Skip to content

Refactor CLI and shared tests to use vitest#1073

Merged
rocketstack-matt merged 5 commits intofinos:mainfrom
willosborne:vitest-refactor
Mar 27, 2025
Merged

Refactor CLI and shared tests to use vitest#1073
rocketstack-matt merged 5 commits intofinos:mainfrom
willosborne:vitest-refactor

Conversation

@willosborne
Copy link
Copy Markdown
Member

@willosborne willosborne commented Mar 26, 2025

Jest tests are very janky with Typescript. The result is that we can't run any tests from the VSCode test runner extensions.

This refactors all the tests to use vitest (currently used by the calmhub UI) that is Typescript-native.

This makes the config a lot simpler and also massively faster, since there's no transpile step before the tests get run.

This has a small issue where for some reason, a very small number of tests in the project don't seem to find the 'vi' module because the vitest globals aren't picked up. It might be my editor setup, too. This doesn't break any tests but is annoying - will see if I can fix later.

Comment thread cli/src/cli.e2e.spec.ts Outdated
@rocketstack-matt rocketstack-matt merged commit 0517327 into finos:main Mar 27, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Affects `cli` code config shared

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants