diff --git a/src/setup_node_env/node_version_validator.js b/src/setup_node_env/node_version_validator.js index 0c476c9f5a89..1b7a3381f6bd 100644 --- a/src/setup_node_env/node_version_validator.js +++ b/src/setup_node_env/node_version_validator.js @@ -61,7 +61,7 @@ if (!isVersionValid) { } else if (!isMinorValid) { // Validates Minor version of the NodeJS var warnMessage = - `You're using an untested version of Node.js. OpenSearch Dashboards has been tested to work with Node.js` + + `You're using an untested version of Node.js. OpenSearch Dashboards has been tested to work with Node.js ` + `${requiredVersion}. Your current version is ${currentVersion}.`; console.warn(warnMessage); } diff --git a/src/setup_node_env/node_version_validator.test.js b/src/setup_node_env/node_version_validator.test.js index ecb8274899ff..4016d4d27284 100644 --- a/src/setup_node_env/node_version_validator.test.js +++ b/src/setup_node_env/node_version_validator.test.js @@ -106,7 +106,7 @@ function testValidateNodeVersion(done, versionToTest, expectError = false, expec expect(error.code).toBe(0); var speficicWarningMessage = - `You're using an untested version of Node.js. OpenSearch Dashboards has been tested to work with Node.js` + + `You're using an untested version of Node.js. OpenSearch Dashboards has been tested to work with Node.js ` + `${REQUIRED_NODE_JS_VERSION}. Your current version is ${versionToTest}.\n`; expect(stderr).toStrictEqual(speficicWarningMessage); } else {