vitest-dev / vitest

Next generation testing framework powered by Vite.
https://vitest.dev
MIT License
13.03k stars 1.17k forks source link

Remove Task's `type: 'custom'` #6865

Open sheremet-va opened 3 hours ago

sheremet-va commented 3 hours ago

Clear and concise description of the problem

The custom type is identical to the test type; the only difference is that it's initiated by calling getCurrentSuite().task(). Users of the API can attach their own custom properties to differentiate between built-in tests and custom tests.

Suggested solution

Alternative

No response

Additional context

No response

Validations

sheremet-va commented 3 hours ago

We might also be able to remove the type = 'custom' before Vitest 3 🤔 (By replacing it with type = 'test') I am not sure how breaking it is 🤔