From 47e857e7d9b07934051294b6e59145de559e60e3 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Fri, 18 Feb 2022 08:18:19 +0000 Subject: [PATCH] [Tests] unit test for config was failing openseasrch_config.test.ts was failing with yarn test:jest Introduced: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/1234 Issue resolved: n/a Signed-off-by: Kawika Avilla --- src/core/server/opensearch/opensearch_config.test.ts | 4 ++-- yarn.lock | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/core/server/opensearch/opensearch_config.test.ts b/src/core/server/opensearch/opensearch_config.test.ts index afe1c7d28754..7c65ced58fdc 100644 --- a/src/core/server/opensearch/opensearch_config.test.ts +++ b/src/core/server/opensearch/opensearch_config.test.ts @@ -52,11 +52,11 @@ const applyOpenSearchDeprecations = ( _config[path] = settings; const migrated = applyDeprecations( _config, - deprecations.map((deprecation) => ({ + deprecations.map((deprecation: any) => ({ deprecation, path, })), - (msg) => deprecationMessages.push(msg) + (msg: any) => deprecationMessages.push(msg) ); return { messages: deprecationMessages, diff --git a/yarn.lock b/yarn.lock index 0ee771caa4b3..4725e17626ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9968,7 +9968,12 @@ got@^9.6.0: to-readable-stream "^1.0.0" url-parse-lax "^3.0.0" -graceful-fs@4.X, graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.3, graceful-fs@^4.2.4, graceful-fs@^4.2.6: +graceful-fs@4.X, graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.3, graceful-fs@^4.2.4: + version "4.2.4" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" + integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== + +graceful-fs@^4.2.6: version "4.2.9" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96" integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==