JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12064
  • Score
    100M100P100Q129091F
  • License MIT

power-assert instrumentor for TypeScript

Package Exports

  • espower-typescript
  • espower-typescript/guess

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (espower-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

espower-typescript npm version build status Dependency Status

power-assert instrumentor for TypeScript

Install

$ npm install -D espower-typescript

Usage

Zero-config mode

$ mocha --compilers ts:espower-typescript/guess test/**/*.ts

If your tests are not in test dir

You can set test directory in your package.json

{
    "name": "your-module",
    "description": "Your module",
    "version": "0.0.1",
    "directories": {
        "test": "spec/"
    },
...
}

Then, run mocha with --compilers js:espower-typescript/guess

$ mocha --compilers ts:espower-typescript/guess spec/**/*.ts

Note: 'espower-typescript/guess' is inspired by intelli-espower-loader

tsconfig.json and CompilerOptions

If tsconfig.json is in your prject root, 'espower-typescript/guess' loads it automatically.

Note: only compilerOptions field in tsconfig.json is applied.

License