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

[Feature request] Treat TypeScript (and potentially other checker) errors as test failures when running Vitest #323

Open
3 tasks done
treybrisbane opened this issue May 22, 2024 · 0 comments

Comments

@treybrisbane
Copy link

Is your feature request related to a problem? Please describe.

Currently, when running Vitest with vite-plugin-checker configured, checker errors are only logged and do not fail the test run. This is particularly apparent when using the TypeScript checker, as tools like ts-jest treat type errors as test failures by default.

Describe the solution you'd like

An MVP would be:

  • Detection of any TypeScript errors can (configurably) result in the whole Vitest run failing
  • Behaviour is configurable via a boolean flag specific to the TypeScript checker

The ideal solution would be:

  • Any checker errors can (configurably) result in failures of the individual tests (or test files) they appear in
  • Behaviour is configurable via boolean flags specific to each checker implementation

Describe alternatives you've considered

No response

Additional context

No response

Validations

  • Read the docs.
  • Read the Contributing Guidelines.
  • Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
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

No branches or pull requests

1 participant