Skip to content
TeleiosJoin free
Course 15 of 18 · Free

Testing & Quality

Test Tally at every level, from Vitest unit tests to Playwright journeys in a real browser, and add the linting, formatting, type checks and hooks that act as quality gates.

Modules

6

Lessons

30

Level

Advanced

Project

Reviewed by a mentor

About This Course

Tally now has accounts, a database and a full-stack front end, and so far you have checked it by clicking around. This course teaches you to check it with code: what to test, how to write tests that catch real bugs without breaking on every refactor, and how to make those checks run automatically. The course moves up the testing pyramid: unit tests for logic, integration tests for the API and database, component tests for the interface, and a small set of end-to-end tests for the flows that matter most. It closes with linting, formatting, type checks and coverage as quality gates, so one command tells you whether the project is healthy. AI is still a tutor only: you write every test yourself.

You'll Be Able To

  • Explain the testing pyramid and decide which kind of test fits a given piece of code.
  • Write unit tests with Vitest, using stubs, spies and mocks appropriately.
  • Write integration tests for API routes, server actions and database logic against an isolated test database.
  • Test React components the way users use them with Testing Library, and cover a key flow end to end with Playwright.
  • Set up linting, formatting, type checks and pre-commit hooks that act as quality gates.

What's Inside

  1. 1

    Why we test

    4 lessons

    Learn what automated tests are for and how the testing pyramid guides them, then set up Vitest in Tally and write your first tests for its budget maths.

  2. 2

    Unit testing

    6 lessons

    Write unit tests that find real bugs: pure functions, boundaries, zero and rounding, stubs, spies and mocks, fake dates and timers, and test-driven development.

  3. 3

    Integration testing

    5 lessons

    Test Tally's API for real: Supertest requests, a test database reset between tests, login and ownership rules, and Next.js server actions and route handlers.

  4. 4

    Component testing

    5 lessons

    Test Tally's React components the way people use them: Testing Library queries, realistic typing and clicking, forms and their errors, and network calls mocked with MSW.

  5. 5

    End-to-end basics

    5 lessons

    Test whole journeys in a real browser with Playwright: when end-to-end tests are worth it, locators and web-first assertions, logins and test data, and Tally's add-expense flow.

  6. 6

    Quality gates

    5 lessons

    Add four quality gates to Tally: ESLint, Prettier, a strict TypeScript check and test coverage, then run them all with one command and a pre-commit hook.

Get the full syllabus

Every lesson in the Associate Full-Stack Development path, on this page and as a PDF.

See our Privacy Policy.

Next course: Deployment, CI/CD & Production