0Pricing
TypeScript Academy · Lesson

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/node

All lessons in this course

  1. Vitest/Jest setup for TS
  2. Typing tests & mocks; expectTypeOf
  3. E2E typing glimpses (Playwright/Cypress)
← Back to TypeScript Academy