@northbrook/ts-mocha

1.5.2 • Public • Published

Northbrook TypeScript Mocha

Test your packages with mocha + ts-node

Get it

npm install --save-dev @northbrook/ts-mocha

Configure it

// northbrook.json
{
  "plugins": [
    "ts-mocha" // add to registered plugins
  ],
  // optional configuration
  "ts-mocha": {
    // default : []
    exclude: ["somePackage"] // exclude a managed package from testing
    // default: 'test/'
    directory: "src/" a place to find your test,
    // default: ['.ts', '.tsx']
    extensions: ['.spec.ts'] // extensions to match
  }
}

// tsconfig.json - TypeScript 2.x
{
  "compilerOptions": {
    ...
    "types": [
      "node",
      "mocha"
    ]
  }
}

Use it

northbrook ts-mocha
# only run for a specific package
northbrook ts-mocha --only somePackage

Package Sidebar

Install

npm i @northbrook/ts-mocha

Weekly Downloads

1

Version

1.5.2

License

MIT

Last publish

Collaborators

  • northbrook