You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client for the Content Management API (CMA): create, update, delete, and fetch content and stack configuration in a Contentstack account. (This is not the Content Delivery API / read-only delivery client.)
npm install
npm run build # clean + babel + webpack targets
npm run lint # eslint lib test
npm run test# package.json chains test:api + test:unit (verify test:api exists in scripts)
npm run test:unit # Mocha unit suite + nyc
npm run test:sanity-test # integration-style suite (needs env + network)
npm run test:sanity-nocov # same without nyc
npm run test:typescript # Jest for test/typescript
npm run generate:docs # JSDoc
Unit vs integration
Unit: test/unit/index.js wires Mocha files; mocked HTTP, no live CMA.
Sanity / API: test/sanity-check/sanity.js runs against a real stack; imports dist/node/contentstack-management.js (built output). Requires credentials and env (see test/sanity-check/utility/testSetup.js: EMAIL, PASSWORD, HOST, ORGANIZATION, optional OAuth / Personalize vars).