northbrook-ts-mochadeprecated

Northbrook plugin for testing with ts-node + mocha

Usage no npm install needed!

<script type="module">
  import northbrookTsMocha from 'https://cdn.skypack.dev/northbrook-ts-mocha';
</script>

README

Northbrook TypeScript Mocha

Test your packages with mocha + ts-node

Get it

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

Configure it

{
  "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
  }
}

Use it

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