Skip to content

Commit

Permalink
test: Add sourcemap support to test stack traces
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Aug 1, 2016
1 parent e6d41be commit 778eaf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"@types/chai": "^3.4.29",
"@types/chai-as-promised": "0.0.28",
"@types/mocha": "^2.2.28",
"@types/source-map-support": "^0.2.27",
"chai": "^3.5.0",
"chai-as-promised": "^5.2.0",
"chalk": "^1.1.3",
Expand All @@ -78,6 +79,7 @@
"istanbul": "~0.4.3",
"mocha": "^2.5.3",
"remap-istanbul": "^0.6.4",
"source-map-support": "^0.4.2",
"tslint": "^3.5.0",
"typedoc": "~0.4.2",
"typescript": "~2.0.0"
Expand Down
4 changes: 4 additions & 0 deletions test/support/chai.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import * as chai from "chai";
import * as chaiAsPromised from "chai-as-promised";
import * as Bluebird from "bluebird";
import * as sourceMapSupport from "source-map-support";

Bluebird.longStackTraces();
sourceMapSupport.install({
handleUncaughtExceptions: false
});

chai.use(chaiAsPromised);

0 comments on commit 778eaf7

Please sign in to comment.