require('babel-register');
require('coffee-script/register');

require('coffee-script/register');
require('babel-register');
require('source-map-support').install({ handleUncaughtExceptions: false, hookRequire: true });

Fix stack traces for errors happening inside coffee-script tests.
fix: Fix stack traces for errors happening inside coffee-script tests.

Both `coffee-script` as well as `source-map-support` (loaded through `babel-register`) patch `Error.prepareStackTrace` to modify stack traces to point to correct error locations for transpiled code. Unfortunately, these two patches don't play well together.

But `coffee-script/register` automatically generates inline source maps, which `source-map-support` has support for via the `hookRequire` option. So in the end, we can make those two play together by configuring `source-map-support` correctly.
