From 9a7c4b4817c46c9cbe089016a6893aa9a5d577fd Mon Sep 17 00:00:00 2001 From: Vadim Dalecky Date: Wed, 3 Jan 2018 15:08:22 +0000 Subject: [PATCH] feat: hide .nvm folders --- package.json | 14 +++++++++----- src/LineWriter.js | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 2cfba16..7d1443e 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "eslint": "^4.2.0", "eslint-config-mailonline": "^9.0.0", "husky": "^0.14.3", - "jest": "^22.0.0", + "jest": "22.0.4", + "jest-cli": "22.0.4", "mol-conventional-changelog": "^1.2.0", "semantic-release": "^8.2.0" }, @@ -38,10 +39,13 @@ "index.js" ], "reporters": [ - ["./", { - "logLevel": "INFO", - "showInternalStackTraces": false - }] + [ + "./", + { + "logLevel": "INFO", + "showInternalStackTraces": false + } + ] ], "testRegex": "(test|src)\\/.+\\.(test|spec)\\.jsx?$" }, diff --git a/src/LineWriter.js b/src/LineWriter.js index 9635def..2b1ccea 100644 --- a/src/LineWriter.js +++ b/src/LineWriter.js @@ -9,7 +9,7 @@ const formatStatsBar = require('./format/formatStatsBar'); const formatFailureMessageTraceLine = require('./format/formatFailureMessageTraceLine'); const REG_TRACE_LINE = /\s*(.+)\((.+):([0-9]+):([0-9]+)\)$/; -const REG_INTERNALS = /^(node_modules|internal)\//; +const REG_INTERNALS = /^(node_modules|internal|(\.\.\/)*\.nvm)\//; const REG_AT_PATH = /^\s*at (\/[^:]+):([0-9]+):([0-9]+)\s*$/; const REG_AT = /^\s*at/; const REG_ERROR = /^\s*Error:\s*/;