一键导入
qa-engineer-unit
Write focused unit tests for complex logic with Vitest
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write focused unit tests for complex logic with Vitest
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| 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']);
});
});
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.