Missing types from vitest/runners
module
#7077
aleclarson
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
All these types are available from |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any types used by
VitestRunner
or a subclass thereof should be exported from thevitest/runners
module.Some examples of currently missing types include:
SerializedConfig
(used byVitestTestRunner
constructor)Task
TaskResult
(used byTask.result
property)ErrorWithDiff
(used byTaskResult.errors
property)VitestRunner
(extended byVitestTestRunner
class)This will make it more convenient to subclass an existing runner. Currently, I have to declare my own types, which is inconvenient and a bit noisy.
Beta Was this translation helpful? Give feedback.
All reactions