2016-07-11 2 views
1

私はTypemapプロジェクトのコードカバレッジを取得するためにremap istanbulを使用しようとしています。しかし、私はasync/awaitを使用しているので、TypeScriptはまだそのコードをES5に渡すことをサポートしていないので、Babelを使ってその作業を行っています。だから、基本的に私のタイスクリプトコードは、TypeScriptコンパイラによってES6に変換され、次にBabelを使ってES5に変換されます。typescriptとbabelを使用しているときにremap istanbul

カバレッジレポートを生成しようとすると、Typeファイルが生成されないため(これはgulpを使用しているため、そのまま通過しているため)、JavaScriptがロードされません。これを設定する最良の方法は何でしょうか?

答えて

0

イスタンブール1.xだけでうまくいきます。 this repositoryから

{ 
    "name": "sample-babel-node", 
    "version": "1.0.0", 
    "description": "Sample project to demonstrate source mapped coverage reports with istanbul", 
    "main": "index.js", 
    "directories": { 
    "test": "test" 
    }, 
    "scripts": { 
    "test": "babel-node ./node_modules/istanbul/lib/cli.js cover ./test/index.test.js" 
    }, 
    "repository": { 
    "type": "git", 
    "url": "git+ssh://[email protected]/istanbuljs/sample-babel-node.git" 
    }, 
    "author": "", 
    "license": "BSD-3-Clause", 
    "bugs": { 
    "url": "https://github.com/istanbuljs/sample-babel-node/issues" 
    }, 
    "homepage": "https://github.com/istanbuljs/sample-babel-node#readme", 
    "dependencies": { 
    "babel-cli": "^6.2.0", 
    "babel-preset-es2015": "^6.1.18" 
    }, 
    "devDependencies": { 
    "istanbul": "^1.0.0-alpha.2" 
    } 
} 

またthis git issueをチェックアウトし、(などがぶ飲み、イサキは、)そこではありません。

関連する問題