'use strict';

var resolveFrom = require('resolve-from');

var options = {
	only: /(test|test\-.+|test\/.+)\.js$/,
	blacklist: ['regenerator']
};

try {
	var localBabel = resolveFrom('.', 'babel-core/register') || resolveFrom('.', 'babel/register');

	require(localBabel)(options);
} catch (err) {
	require('babel-core/register')(options);
}

var path = process.argv[2];

require(path);

@@ -135,16 +135,49 @@
 erator'%5D
+,%0A%09optional: %5B'asyncToGenerator'%5D
 %0A%7D;%0A%0Atry

use asyncToGenerator transform