Loading...
Loading...
Write unit tests, component tests, and integration tests for AiderDesk using Vitest and React Testing Library. Use when creating new tests, adding test coverage, configuring mocks, setting up test files, or debugging failing tests.
npx skill4agent add hotovo/aider-desk writing-testssrc/common/__tests__/utils/math.test.tsimport { describe, it, expect } from 'vitest';
import { add } from '../../utils/math';
describe('math utility', () => {
it('adds two numbers correctly', () => {
expect(add(1, 2)).toBe(3);
});
});npm run testsrc/mainsrc/commonvi.mock()src/renderervi.mock()screen.debug()npm run test:node -- --no-color -t "test name"npm run test:coverage