Skip to content

Commit 330286d

Browse files
authored
ci: fix Node version specific tests not running properly in local environment (#7984)
1 parent ad5e82f commit 330286d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/helper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ global.it_only_postgres_version = version => {
462462
};
463463

464464
global.it_only_node_version = version => {
465-
const envVersion = process.env.NODE_VERSION;
465+
const envVersion = process.version;
466466
if (!envVersion || semver.satisfies(envVersion, version)) {
467467
return it;
468468
} else {
@@ -480,7 +480,7 @@ global.fit_only_mongodb_version = version => {
480480
};
481481

482482
global.fit_only_node_version = version => {
483-
const envVersion = process.env.NODE_VERSION;
483+
const envVersion = process.version;
484484
if (!envVersion || semver.satisfies(envVersion, version)) {
485485
return fit;
486486
} else {

0 commit comments

Comments
 (0)