Use babel-register script when running babel smoke tests (#442)

This commit is contained in:
Brian Ng
2017-03-30 10:25:23 -05:00
committed by Henry Zhu
parent 2f3123ca03
commit 4d18221098
4 changed files with 532 additions and 282 deletions

View File

@@ -0,0 +1,10 @@
"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,
});