extra credit Search 85,062 technologies ⌘K Download for Mac

Vitest

Category
Frameworks and libraries
Docs outline
13 sections

Official docs outline

vitest.dev
  1. Why Vitest

    Vite-powered test runner, Jest compatibility and design goals.

  2. Getting started

    Installing, configuration, and running tests.

  3. Writing tests

    test, describe, expect and organization.

  4. Using matchers

    expect assertions and matchers.

  5. Testing async code

    Promises, async/await and resolves/rejects.

  6. Setup and teardown

    beforeEach, afterEach, beforeAll and afterAll hooks.

  7. Mocking

    vi.fn, vi.mock, spies, timers, dates and modules.

  8. Snapshot testing

    toMatchSnapshot, inline snapshots and updating.

  9. Test context and lifecycle

    Test fixtures with test.extend and run lifecycle.

  10. Environments and projects

    jsdom, happy-dom, node environments, and test projects.

  11. Coverage

    v8 and istanbul coverage providers and thresholds.

  12. Browser mode

    Running tests in real browsers and component testing.

  13. CLI, filtering and debugging

    Watch mode, filtering, reporters and debugging.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 113
↑↓ move ↵ open