Fix babel-eslint version check failing the tests

This commit is contained in:
Miel Truyen 2019-11-24 20:14:56 +01:00
parent a8619469bf
commit bfcf2590eb

View File

@ -8,7 +8,7 @@ const CURRENT_BABEL_VERSION = babelCore.version;
const SUPPORTED_BABEL_VERSION_RANGE =
packageJson.peerDependencies["@babel/core"];
const IS_RUNNING_SUPPORTED_VERSION = semver.satisfies(
CURRENT_BABEL_VERSION,
semver.coerce(CURRENT_BABEL_VERSION).raw,
SUPPORTED_BABEL_VERSION_RANGE,
);