TypeScript Unit Testing

From Chorke Wiki
Revision as of 04:04, 23 May 2019 by Shahed (talk | contribs) (Created page with "<source lang="bash"> mkdir -p jasmine_chai_mocha/src cd jasmine_chai_mocha npm init # mocha -r ts-node/register src: *.spec.ts # https://github.com/chorkeinc/chorke-type-cki...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
mkdir -p jasmine_chai_mocha/src
cd jasmine_chai_mocha
npm init
# mocha -r ts-node/register src/**/*.spec.ts
# https://github.com/chorkeinc/chorke-type-cki.js.git
# chorke js
# MIT
npm install chai mocha ts-node @types/chai @types/mocha --save-dev
vim src/hello_world.ts
vim src/hello_world.spec.ts
npm install
npm run test

References