From dcc715077dbded7c6760676944b8c4a2d23d3575 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 15 May 2019 22:57:54 +0300 Subject: [PATCH] Register "babel-register" directly --- package.json | 2 +- resources/mocha-bootload.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 resources/mocha-bootload.js diff --git a/package.json b/package.json index dc24641a..482d967a 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "PATENTS" ], "options": { - "mocha": "--require resources/mocha-bootload src/**/__tests__/**/*.js" + "mocha": "--require babel-register src/**/__tests__/**/*.js" }, "babel": { "plugins": [ diff --git a/resources/mocha-bootload.js b/resources/mocha-bootload.js deleted file mode 100644 index 188a112b..00000000 --- a/resources/mocha-bootload.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ -require('babel-register')();