Pular para o conteúdo
Kitbay
Skill

vitest

Apache-2.0Atualizado em 11 de nov. de 2026114.826Estrelas no GitHub

A reference skill on the Vitest test framework kept in Supabase's main repository, copied from Anthony Fu's skill collection and generated from the Vitest documentation for version 3.

O que a skill ensina

A reference skill on the Vitest test framework kept in Supabase's main repository, copied from Anthony Fu's skill collection and generated from the Vitest documentation for version 3. It indexes reference files on configuration, the command line, the test and expect APIs, lifecycle hooks, mocking with vi, snapshots, coverage, fixtures, concurrency and sharding, filtering, test environments such as jsdom, type tests and multi-project workspaces. Inside Supabase it is meant for general Vitest questions anywhere in the monorepo, while separate Studio skills cover how Supabase Studio's own tests are set up. It holds no Supabase-specific rules and no commands of its own.

O que faz

  • Look up Vitest configuration and CLI options
  • Write mocks, spies and fake timers with vi
  • Set up coverage, snapshots and fixtures