Vitest is Jest-compatible and comes with out-of-the-box ESM, Typescript, and JSX support. It uses the Vite dev server to transform your files during testing and listens to the same configuration of your app. It is extensible using the same plugin API as Vite and 'notification--slide' The component renders the correct style. The component emits an event when the close button.

13m read timeFrom vuemastery.com
Post cover image
Table of contents
What is Vitest?Why Vitest?How to use Vitest to test your componentsOur Demo Example: A NotificationWhat should we be testing?Common Vitest MethodsBuilding our Vitest Unit TestsOur complete test fileRunning the testsWrapping up

Sort: