contentstack/contentstack-cli-tsgen · Archived

testing

How to run tests and use env for contentstack-cli-tsgen (Jest, ESLint posttest, integration).

First seen Aug 19, 2026

Installation

$ npx skills add contentstack/contentstack-cli-tsgen --skill testing

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from contentstack/contentstack-cli-tsgen.

npx skills add contentstack/contentstack-cli-tsgen

Browse all from contentstack/contentstack-cli-tsgen

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 11
License LICENSE
Default branch master
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,265 B
  • docs SUMMARY.md 108 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Testing skill (contentstack-cli-tsgen)

Commands

Command What it does
npm test Jest with --testPathPattern=tests; then posttest runs ESLint ([package.json](../../package.json))
npm run test:integration Jest only for tests/integration
npm run prepack Build lib/ (required before local csdx plugins:link style workflows)

Config

  • [jest.config.js](../../jest.config.js): ts-jest, testEnvironment: node.

Integration tests

  • [tests/integration/tsgen.integration.test.ts](../../tests/integration/tsgen.integration.test.ts) spawns csdx tsgen with TOKEN_ALIAS.
  • Loads .env from package root via dotenv (path relative to test file). TOKEN_ALIAS must be defined or the suite throws at load time.

CI

  • [.github/workflows/node.js.yml](../../.github/workflows/node.js.yml): npm ci, optional npm run build --if-present, global @contentstack/cli, csdx config:set:region, csdx auth:tokens:add (delivery), npm run prepack, csdx plugins:link, npm test with TOKEN_ALIAS secret.