Vitest/Jest setup for TS
Install and configure Vitest or Jest for TypeScript projects; write a tiny test and run it.
Intro
Goal: Configure Vitest or Jest for TypeScript. You'll install deps, add a config, write one tiny test, and run it.
Install Vitest
Vitest is Vite-native: fast startup, ESM-first, great DX. Install alongside @types/node for globals.
npm install --save-dev vitest @vitest/ui @types/nodeAll lessons in this course
- Vitest/Jest setup for TS
- Typing tests & mocks; expectTypeOf
- E2E typing glimpses (Playwright/Cypress)