ci: fix Node version specific tests not running properly in local environment (#7984)

This commit is contained in:
Antoine Cormouls
2022-05-08 13:36:58 +02:00
committed by GitHub
parent ad5e82f2b7
commit 330286d22b

View File

@@ -462,7 +462,7 @@ global.it_only_postgres_version = version => {
};
global.it_only_node_version = version => {
const envVersion = process.env.NODE_VERSION;
const envVersion = process.version;
if (!envVersion || semver.satisfies(envVersion, version)) {
return it;
} else {
@@ -480,7 +480,7 @@ global.fit_only_mongodb_version = version => {
};
global.fit_only_node_version = version => {
const envVersion = process.env.NODE_VERSION;
const envVersion = process.version;
if (!envVersion || semver.satisfies(envVersion, version)) {
return fit;
} else {