Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.24 KB

File metadata and controls

27 lines (18 loc) · 1.24 KB
name testing
description How to run tests and use env for contentstack-cli-tsgen (Jest, ESLint posttest, integration).

Testing skill (contentstack-cli-tsgen)

Commands

Command What it does
npm test Jest with --testPathPattern=tests; then posttest runs ESLint (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

Integration tests

CI

  • .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.