跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/subsquid/pipes-sdk/typescript-vitest

Codex TypeScript Vitest for Unit Tests and Local Mocks

Organize unit and integration tests and use precise assertions, boundary cases, and isolated fixtures for TypeScript behavior.

中文

Install in Codex

Codex with a pipes-sdk checkout or a TypeScript practice project and its Node and Vitest environment.

  1. Open the pinned GitHub original and retain the complete `.agents/skills/typescript-vitest/` directory in the checkout.
  2. Open Codex in that checkout and invoke `$typescript-vitest` with the example task and desired output.

Example task

Invoke `$typescript-vitest` to cover a local product-filter function with one match and one no-match case. Assert returned values against a fixed array fixture.

What to check

The tests assert the matched record and the empty array. The focused suite is reproducible and each case has clear inputs.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

What tests belong next to source files?

Place unit tests beside the implementation. Integration tests can live in a dedicated tests directory.

Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯