vitest icon indicating copy to clipboard operation
vitest copied to clipboard

Custom test runner

Open black7375 opened this issue 2 years ago • 1 comments

Clear and concise description of the problem

Jest ecosystem has jest-runner or create-jest-runner.

It can be extended to test in an environment such as an electron. Also, It would be nice to be able to perform lint or typecheck with the efficient worker of tinypool.

Suggested solution

I'd like to provide an API for setting up a custom runner.

Alternative

It can also refer to Jest's projects config.

Additional context

No response

Validations

black7375 avatar Jun 13 '22 02:06 black7375

I'd like to provide an API for setting up a custom runner.

Ready to hear it 😄

Right now we run our tests in packages/vitest/src/runtime/run.ts. You can look it up for reference

sheremet-va avatar Jun 14 '22 07:06 sheremet-va

Some more info here on Jest's custom test runner: https://www.youtube.com/watch?v=NtjyeojAOBs "ReactiveConf 2017 - Rogelio Guzman: Jest as a Platform"

acutmore avatar Oct 21 '22 14:10 acutmore