agentsclimarketplace

Vitest migration

Skill alexngai/skill-tree/docs/demo/skills/vitest-migration

Migrate a Jest test suite to Vitest — config, globals, and mock API differences.From its SKILL.md

Install
npx -y skills add alexngai/skill-tree --skill vitest-migration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

0.6 KB, 134 tokens by cl100k_base, as published. Nobody here has run it

Migrate Jest → Vitest

  1. Add vitest and create vitest.config.ts (reuse your Vite config if you have one).
  2. Enable globals: true to keep describe/it/expect without imports.
  3. Swap jest.fn()vi.fn(), jest.mock()vi.mock(), jest.spyOnvi.spyOn.
  4. Replace jest.config timers/fake-timers with vi.useFakeTimers().
  5. Run vitest run in CI; drop ts-jest once green.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.