diff --git a/.babelignore b/.babelignore new file mode 100644 index 0000000000..ec46d9b5e8 --- /dev/null +++ b/.babelignore @@ -0,0 +1,2 @@ +test/fixtures +lib diff --git a/Makefile b/Makefile index c3ea88785d..351fc07848 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ test-babel: cd ./build/babel; \ jq "del(.nyc)" package.json > package.nonyc.json; \ mv -f package.nonyc.json package.json; \ - ../../node_modules/.bin/nyc --no-instrument --no-source-map --reporter=json --report-dir ../../coverage node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --compilers js:../../scripts/test-babel-register.js; \ + ../../node_modules/.bin/nyc --no-instrument --no-source-map --reporter=json --report-dir ../../coverage node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --compilers js:babel-register; \ bootstrap-flow: clean mkdir ./build diff --git a/scripts/test-babel-register.js b/scripts/test-babel-register.js deleted file mode 100644 index d70a3ff7ff..0000000000 --- a/scripts/test-babel-register.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -const register = require("babel-register").default; - -register({ - extensions: [".js"], - // Only js files in the test folder but not in the subfolder fixtures. - only: [/packages\/.+\/test\/(?!fixtures\/).+\.js$/], - compact: true, -});