Commit 669f88ba authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1037 Covergage on TypeScript files using source maps

parent f0c05b0a
......@@ -27,6 +27,10 @@ vagrant/duniter
# vscode
.vscode
# istanbul
.nyc_output
coverage/
# TS migration
test/blockchain/*.js*
test/blockchain/lib/*.js*
......
......@@ -27,7 +27,17 @@
"test": "mocha --growl --timeout 20000 test test/fast test/integration test/",
"start": "node bin/duniter start",
"build": "tsc && cd \"node_modules/duniter-ui\" && npm install && npm run build",
"test-travis": "node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec --timeout 20000 test test/fast test/integration test/"
"test-travis": "nyc mocha --reporter=lcov"
},
"nyc": {
"require": [
"ts-node/register"
],
"reporter": [
"html"
],
"sourceMap": true,
"instrument": true
},
"repository": {
"type": "git",
......@@ -53,12 +63,12 @@
"bs58": "^4.0.1",
"co": "4.6.0",
"colors": "1.1.2",
"cors": "2.8.2",
"commander": "2.9.0",
"cors": "2.8.2",
"daemonize2": "0.4.2",
"ddos": "0.1.16",
"event-stream": "3.3.4",
"errorhandler": "1.5.0",
"event-stream": "3.3.4",
"express": "4.15.2",
"express-cors": "0.0.3",
"express-fileupload": "0.0.5",
......@@ -77,9 +87,9 @@
"querablep": "^0.1.0",
"request": "2.81.0",
"request-promise": "4.2.0",
"scryptb": "6.0.4",
"seedrandom": "^2.4.3",
"sha1": "1.1.1",
"scryptb": "6.0.4",
"spawn-sync": "^1.0.15",
"sqlite3": "3.1.4",
"superagent": "3.5.2",
......@@ -99,14 +109,15 @@
"coveralls": "2.11.4",
"eslint": "3.13.1",
"eslint-plugin-mocha": "4.8.0",
"istanbul": "0.4.0",
"mocha": "2.2.5",
"mocha": "^3.4.2",
"mocha-eslint": "0.1.7",
"mocha-lcov-reporter": "1.0.0",
"nyc": "^11.0.3",
"sha1": "",
"should": "",
"source-map-support": "^0.4.15",
"supertest": "",
"tmp": "0.0.29",
"ts-node": "^3.3.0",
"typescript": "^2.4.1"
},
"peerDependencies": {
......
......@@ -15,7 +15,7 @@ const expectJSON = httpTest.expectJSON;
const expectHttpCode = httpTest.expectHttpCode;
if (constants.MUTE_LOGS_DURING_UNIT_TESTS) {
// require('../../app/lib/logger').NewLogger().mute();
require('../../app/lib/logger').NewLogger().mute();
}
// Trace these errors
......
......@@ -12,7 +12,7 @@ const constants = require('../../app/lib/constants');
require('../../app/modules/bma').BmaDependency.duniter.methods.noLimit(); // Disables the HTTP limiter
if (constants.MUTE_LOGS_DURING_UNIT_TESTS) {
// require('../../app/lib/logger').NewLogger().mute();
require('../../app/lib/logger').NewLogger().mute();
}
describe("Forwarding", function() {
......
--compilers ts-node/register
--require source-map-support/register
--full-trace
--bail
--growl
--timeout 20000
--recursive
--reporter spec
--reporter lcov
test/
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment