Ensure that tests run with the monorepo's version of babel-core (#6454)
This commit is contained in:
parent
e52f6caa18
commit
d89063bb32
@ -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"
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user