tessl install github:onmax/nuxt-skills --skill vitestA blazing fast unit testing framework powered by Vite
Review Score
73%
Validation Score
12/16
Implementation Score
100%
Activation Score
22%
Vite-native testing framework with Jest-compatible API.
npm i -D vitest// vitest.config.ts
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node', // or 'jsdom' for DOM tests
},
})// example.test.ts
import { describe, expect, it, vi } from 'vitest'
describe('math', () => {
it('adds numbers', () => {
expect(1 + 1).toBe(2)
})
})| Task | File |
|---|---|
| Configuration, CLI, projects | config.md |
| test/describe, hooks, fixtures | test-api.md |
| vi.fn, vi.mock, timers, spies | mocking.md |
| expect, snapshots, coverage, filtering | utilities.md |
| Environments, type testing, browser mode | advanced.md |
Setting up tests? → Load config.md
Writing test cases? → Load test-api.md
Mocking dependencies? → Load mocking.md
Assertions/snapshots? → Load utilities.md
DOM/browser/types? → Load advanced.md
vue skill for component patternsts-library skill for library patternsvite skill for shared config