From 330286d22ba5fd5a262bd68f2109bf8f8b5b1c1c Mon Sep 17 00:00:00 2001 From: Antoine Cormouls Date: Sun, 8 May 2022 13:36:58 +0200 Subject: [PATCH] ci: fix Node version specific tests not running properly in local environment (#7984) --- spec/helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/helper.js b/spec/helper.js index 39be89d8..f769c0f5 100644 --- a/spec/helper.js +++ b/spec/helper.js @@ -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 {