Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/reporters/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ var nodeunit = require('../nodeunit'),

exports.info = "Default tests reporter";

Error.prepareStackTrace = function(error, structuredStackTrace) {
// our invocation will be at the second level of the stack trace
var our = structuredStackTrace[1];
return "\nat " + our.getFileName() + " line " + our.getLineNumber();
}

/**
* Run all tests within each module, reporting the results to the command-line.
Expand Down