一键导入
testing
Jest and integration tests for contentstack-cli-tsgen (v1 line).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Jest and integration tests for contentstack-cli-tsgen (v1 line).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | testing |
| description | Jest and integration tests for contentstack-cli-tsgen (v1 line). |
contentstack-cli-tsgen)This package is the only cli-plugins package that uses Jest (other plugins use Mocha).
| Command | What it does |
|---|---|
pnpm test | Jest with --testPathPattern=tests; then posttest runs ESLint |
pnpm run test:integration | Jest only for tests/integration |
pnpm run build | Build lib/ (required before csdx plugins:link) |
From repo root: pnpm --filter contentstack-cli-tsgen …
jest.config.js: ts-jest, testEnvironment: node.csdx tsgen with TOKEN_ALIAS..env from package root via dotenv. TOKEN_ALIAS must be defined or the suite throws at load time..github/workflows/tsgen-integration-test.yml: pnpm install, build, global @contentstack/cli, token setup, csdx plugins:link, test:integration with secrets..github/workflows/unit-test.yml → npm run test in this package.PR and release checklist for cli-cm-regex-validate (security, packaging, CI, messages)
Contentstack CLI plugin patterns for cm:stacks:validate-regex (SDK, schema, safe-regex, output)
Local and CI workflow for cli-cm-regex-validate — commands, layout, naming, hooks, and merge expectations
Jest testing patterns for cli-cm-regex-validate (mocks, fixtures, no live API calls)
Reviews pull requests and risky changes for the contentstack-cli-content-type plugin. Use when reviewing diffs, security-sensitive edits, dependency upgrades, or changes to compare/diagram/temp-file behavior, ESLint, and tests.
Develops and maintains the contentstack-cli-content-type csdx plugin (content-type list, details, audit, compare, compare-remote, diagram). Use when editing this repository, ContentTypeCommand setup and flags, CMA/Management SDK usage, axios audit/references calls, diff/compare HTML output, Graphviz diagrams, or oclif readme/manifest workflows.