Ensure that tests run with the monorepo's version of babel-core (#6454)

This commit is contained in:
Logan Smyth 2017-10-10 00:29:23 -04:00 committed by GitHub
parent e52f6caa18
commit d89063bb32
3 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,7 @@
"semver": "^5.3.0"
},
"devDependencies": {
"babel-cli": "7.0.0-beta.2",
"babel-helper-fixtures": "7.0.0-beta.2",
"babel-helper-plugin-test-runner": "7.0.0-beta.2",
"compat-table": "kangax/compat-table#b8477cc0f6d65c000c46213e654d19f350de9fa8"

View File

@ -44,7 +44,7 @@ const assertTest = (stdout, stderr, opts) => {
};
const buildTest = opts => {
const binLoc = path.join(process.cwd(), "node_modules/.bin/babel");
const binLoc = require.resolve("babel-cli/bin/babel");
return callback => {
clear();

View File

@ -14,6 +14,7 @@
"babel-plugin"
],
"devDependencies": {
"babel-core": "7.0.0-beta.2",
"babel-helper-plugin-test-runner": "7.0.0-beta.2",
"babel-plugin-syntax-object-rest-spread": "7.0.0-beta.2"
}