Testing

Mocha

1 . Add script to package.json:

"test": "TS_NODE_PROJECT=./test/tsconfig.json TS_NODE_COMPILER=\"ttypescript\" ./node_modules/.bin/mocha --require ts-node/register --watch-extensions ts --opts ./mocha.opts --project ./test/tsconfig.json",
  1. Ensure that your default tsconfig.json exists in root folder that was set during second step of installation.

  2. Add new one over ./test/tsconfig.json:

{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "commonjs"
}
}