Skip to content

Commit

Permalink
update istanbul to nyc (their new cli) to get typescript coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred K. Schott authored and intelliot committed Jan 12, 2018
1 parent e1630e1 commit 01ecfb0
Show file tree
Hide file tree
Showing 5 changed files with 337 additions and 316 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -61,3 +61,6 @@ out/
scripts/cache

.eslintrc

# nyc (istanbul)
.nyc_output
10 changes: 10 additions & 0 deletions .nycrc
@@ -0,0 +1,10 @@
{
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.d.ts"],
"extension": [".ts"],
"require": ["ts-node/register"],
"reporter": ["text-summary", "html"],
"sourceMap": true,
"instrument": true,
"cache": true
}
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -40,7 +40,6 @@
"gulp-bump": "^0.1.13",
"gulp-rename": "^1.2.0",
"http-server": "^0.8.5",
"istanbul": "^1.1.0-alpha.1",
"jayson": "^1.2.2",
"json-loader": "^0.5.2",
"json-schema-to-markdown-table": "^0.4.0",
Expand All @@ -49,6 +48,8 @@
"mocha-junit-reporter": "^1.9.1",
"null-loader": "^0.1.1",
"ts-loader": "^3.2.0",
"nyc": "^11.3.0",
"source-map-support": "^0.5.0",
"ts-node": "^3.3.0",
"typescript": "^2.6.1",
"uglifyjs-webpack-plugin": "^1.1.4",
Expand All @@ -65,7 +66,7 @@
"watch": "tsc -w",
"compile-with-source-maps": "babel -D --optional runtime -s -t -d dist/npm/ src/",
"prepublish": "npm run clean && npm run compile",
"test": "istanbul cover _mocha",
"test": "nyc mocha",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"lint": "if ! [ -f .eslintrc ]; then curl -o .eslintrc 'https://raw.githubusercontent.com/ripple/javascript-style-guide/es6/eslintrc'; echo 'parser: babel-eslint' >> .eslintrc; fi; eslint -c .eslintrc src/",
"perf": "./scripts/perf_test.sh",
Expand Down
6 changes: 5 additions & 1 deletion test/mocha.opts
@@ -1 +1,5 @@
--reporter spec --timeout 5000 --slow 500 --require ts-node/register
--reporter spec
--timeout 5000
--slow 500
--require ts-node/register
--require source-map-support/register

0 comments on commit 01ecfb0

Please sign in to comment.