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*/;