with one click
qa-engineer-unit
Write focused unit tests for complex logic with Vitest
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Write focused unit tests for complex logic with Vitest
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Deep investigation of GitHub issues with root cause analysis and proposed solutions. Use when asked to investigate, analyze, or dig into an issue.
Generate a project spec or ticket spec. Use when asked to spec, define, design, or write a ticket for a project or task.
Triage GitHub issues or Linear tickets — classify type, assess priority, check reproducibility, detect duplicates. Use when asked to triage, assess, or categorize issues.
Plan and perform manual tests for Storyblok monoblok packages against a real, seeded Storyblok space
Drive multiple GitHub issues through the full pipeline (triage, investigate, plan, implement) in parallel. Use when asked to blitz, batch-process, or work multiple issues.
Use when writing documentation. Provides a writing style guide and content structure patterns.
| name | qa-engineer-unit |
| description | Write focused unit tests for complex logic with Vitest |
Unit tests are optional and only required for complex code paths that are hard to cover in integration tests. Use this skill to supplement the required integration coverage. Do not use it to replace integration tests.
describe and focused it cases that each validate one behavior.should.makeMockEntity, makeSchema, makeMaps).expect(...).toBe(...) or toEqual(...).Example shape (simplified):
import { describe, expect, it } from 'vitest';
import { transformEntity } from './transform-entity';
import { makeMockEntity } from './__tests__/helpers';
describe('transformEntity', () => {
it('should map identifiers from the map', () => {
const entity = makeMockEntity();
const idMap = new Map([[entity.id, 'new-id']]);
const result = transformEntity(entity, { idMap });
expect(result.id).toBe('new-id');
});
it('should report missing schema when not provided', () => {
const entity = makeMockEntity();
const result = transformEntity(entity, { idMap: new Map(), schema: {} });
expect(Array.from(result.missingSchemas)).toEqual(['entity']);
});
});