library/specializations/web-development/skills/vitest/SKILL.md
Vitest configuration, mocking, coverage, snapshot testing, and performance.
npx skillsauth add a5c-ai/babysitter vitestInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Expert assistance for unit and integration testing with Vitest.
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { render, screen } from '@testing-library/react';
import { UserService } from './user.service';
describe('UserService', () => {
const mockDb = { user: { findMany: vi.fn() } };
beforeEach(() => {
vi.clearAllMocks();
});
it('should fetch users', async () => {
mockDb.user.findMany.mockResolvedValue([{ id: '1', name: 'John' }]);
const service = new UserService(mockDb);
const users = await service.findAll();
expect(users).toHaveLength(1);
expect(mockDb.user.findMany).toHaveBeenCalledOnce();
});
});
// vitest.config.ts
export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
coverage: {
provider: 'v8',
reporter: ['text', 'html'],
},
},
});
development
Model documentation skill for generating model cards following Google's model card framework.
development
MLflow integration skill for experiment tracking, model registry, and artifact management. Enables LLMs to log experiments, compare runs, manage model lifecycle, and retrieve artifacts through the MLflow API.
data-ai
LIME-based local explanation skill for individual predictions across tabular, text, and image data.
devops
Kubeflow Pipelines skill for ML workflow orchestration, component management, and Kubernetes-native ML.