Code Monkey home page Code Monkey logo

espower-typescript's Introduction

espower-typescript npm version build status Dependency Status

power-assert instrumentor for TypeScript

Install

$ npm install -D espower-typescript

TypeScript versions

  • espower-typescript v5.x uses TypeScript v1.8
  • espower-typescript v4.x uses TypeScript v1.7
  • espower-typescript v2.x and v3.x uses TypeScript v1.6
  • espower-typescript v1.x uses TypeScript v1.5

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 ts: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.

JSX/React

.tsx files are supported.

License

espower-typescript's People

Contributors

teppeis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.