Install any skill in seconds. Free to start, no credit card required.
Get Started Free →tencentblueking/chat-x-unit-test
帮助开发者为 Vue 3 组件编写单元测试。当用户需要添加单元测试时使用。
Passed 22 of 22 test cases with the skill, and 17 of 22 without it.
and 5 more in the full report
5 fixed17 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am working on `src/components/chat-box` in chat-x and only want to run tests in that specific folder without running the entire repository suite. What command should I execute?
| Checked | Without skill | With skill |
|---|---|---|
| Uses npx vitest run targeting src/components/chat-box | Missed | Passed |
The instructions your model reads when the skill loads.
测试文件与组件同目录,命名为 组件名.spec.ts。
pnpm --filter @blueking/chat-x test # 所有测试
npx vitest run src/components/your-component # 指定目录
import { defineComponent, h } from 'vue';
import { type VueWrapper, mount } from '@vue/test-utils';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import YourComponent from './your-component.vue';
vi.mock('vue-tippy', () => ({ /* ... */ }));
describe('YourComponent', () => {
let wrapper: VueWrapper;
beforeEach(() => { vi.clearAllMocks(); });
afterEach(() => { wrapper?.unmount(); });
it('应该正确渲染', () => {
wrapper = mount(YourComponent);
expect(wrapper.find('.your-component').exists()).toBe(true);
});
});
test cases passed, vs 17 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.