بنقرة واحدة
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 المهني
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.
| 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.