Skip to content

Instantly share code, notes, and snippets.



Last active Dec 22, 2018
What would you like to do?
setup mocha and chai
$ npm install mocha chai ts-node -g
$ npm install --save-dev mocha chai ts-node @types/chai @types/mocha
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit:
"version": "0.2.0",
"configurations": [
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"internalConsoleOptions": "openOnSessionStart"
"scripts": {
"test": "mocha --require ts-node/register test/**/*.ts"
"compilerOptions": {
"outDir": "tmp",
"target": "es5",
"module": "commonjs",
"lib": [
"rootDir": "src",
"jsx": "react",
"sourceMap": true,
"declaration": true,
"moduleResolution": "node",
"noImplicitAny": false,
"removeComments": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"types": [
"exclude": [

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.