• vitest
  • svelte testing library I don’t think vitest and Svelte Testing Library are mutually exclusive . Vitest is a test runner , like Jest ( but better imo ) . Svelte Testing Library is utility for Ul component testing . So you can use both . In fact , Svelte Testing Library can be run on Vitest .

Also , maybe it depends on definition , but I don’t consider Svelte Testing Library ( Ul component tests ) to be unit tests . They are Ul testing for me . Unit tests are more testing a single piece of functionality , typically , no pun intended , a function .