@northbrook/ts-mocha
Northbrook plugin for testing with ts-node + mocha
Last updated 3 years ago by northbrook .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @northbrook/ts-mocha 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.5.2                                ...           latest (3 years ago)

3 Versions

  • 1.5.2                                ...           3 years ago
  • 1.5.1                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 4
Dependencies (6)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |