Use babel-register script when running babel smoke tests (#442)
This commit is contained in:
10
scripts/test-babel-register.js
Normal file
10
scripts/test-babel-register.js
Normal 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,
|
||||
});
|
||||
Reference in New Issue
Block a user