Skip to content

tests: add cli unit tests#719

Merged
leerob merged 10 commits intovercel:mainfrom
gamemaker1:test/add-tests
Jul 18, 2022
Merged

tests: add cli unit tests#719
leerob merged 10 commits intovercel:mainfrom
gamemaker1:test/add-tests

Conversation

@gamemaker1
Copy link
Contributor

Related Issues

Closes #709. Supersedes #712.

Description

This PR:

  • adds unit tests for the CLI.
  • adds vitest as a development dependency.
  • refactors some parts to make them easier to test:
    • ParsedEndpoint is now an object.
    • loadConfiguration returns Partial<Configuration instead of Configuration.

Copy link
Contributor

@leerob leerob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good 👍 Should we merge now or is there more you want to do here?

@leerob leerob merged commit 36d60e7 into vercel:main Jul 18, 2022
@gamemaker1
Copy link
Contributor Author

I would like to achieve 100% coverage on these files at some point, but other than that I think these tests will help ensure the code works.

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.

Add unit tests with vitest

2 participants