Atlas / Skills / tencentblueking / Chat X Unit Test

Chat X Unit TestSAFE

skills/tencentblueking/chat-x-unit-test

蓝鲸智云容器管理平台(BlueKing Container Service)

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
—
Hosts
—
License
NOASSERTION
Stars
840
01

Overview

蓝鲸智云容器管理平台(BlueKing Container Service)

Read from source at commit 87a6fdb6f4b4OBSERVED · 2026-10-12
Advertisement
02

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: chat-x-unit-test
description: 帮助开发者为 Vue 3 组件编写单元测试。当用户需要添加单元测试时使用。
---

# Vue 组件单元测试指南

## 测试规范

测试文件与组件同目录,命名为 `组件名.spec.ts`。

## 运行测试

```bash
pnpm --filter @blueking/chat-x test              # 所有测试
npx vitest run src/components/your-component     # 指定目录
```

## 基础模板

```typescript
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);
  });
});
```

## 测试分类

- 渲染测试:组件正确渲染
- Props 测试:属性传递和响应
- 事件测试:emit 事件
- Slot 测试:插槽内容

## 同步更新原则

修改组件代码时必须同步更新测试用例。

---

## 📦 可用资源

- `skill://chat-x-unit-test/references/mock-patterns.md`
- `skill://chat-x-unit-test/references/test-qa.md`
- `skill://chat-x-unit-test/references/test-strategies.md`


---
## 📦 可用资源

- `skill://chat-x-unit-test/references/mock-patterns.md`
- `skill://chat-x-unit-test/references/test-qa.md`
- `skill://chat-x-unit-test/references/test-strategies.md`

> 根据 SKILL.md 中的 IF-THEN 规则判断是否需要加载
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (1)

MEDIUMInventory / provenance · inv.symlink · CWE-1104
.codebuddy
.codebuddy
Why it matters. link not followed

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha 87a6fdb6f4b4full audit observations/trust-audit/skill/tencentblueking__chat-x-unit-test.json · Report an issue / request a re-scan
04

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-1287a6fdb6f4b4SAFEB89first audit
05

Questions

What does the Chat X Unit Test skill do?

蓝鲸智云容器管理平台(BlueKing Container Service)

Is Chat X Unit Test safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Chat X Unit Test access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

How current is this page?

The grade is for one exact copy of the source (87a6fdb6f4b4), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement