From 75150a65e016261d5ad03062f64cbe6f58f242c6 Mon Sep 17 00:00:00 2001 From: Ivo Almeida Date: Thu, 23 May 2024 16:48:44 +0100 Subject: [PATCH] fixed jest error related to icons --- src/pybind/mgr/dashboard/frontend/jest.config.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/jest.config.cjs b/src/pybind/mgr/dashboard/frontend/jest.config.cjs index 9cdf6be4b4637..b726b33bda501 100644 --- a/src/pybind/mgr/dashboard/frontend/jest.config.cjs +++ b/src/pybind/mgr/dashboard/frontend/jest.config.cjs @@ -20,7 +20,8 @@ const jestConfig = { globalSetup: 'jest-preset-angular/global-setup', moduleNameMapper: { '\\.scss$': 'identity-obj-proxy', - '~/(.*)$': '/src/$1' + '~/(.*)$': '/src/$1', + '^@carbon/icons/es/(.*)$': '@carbon/icons/lib/$1.js', }, moduleFileExtensions: ['ts', 'html', 'js', 'json', 'mjs', 'cjs'], preset: 'jest-preset-angular', -- 2.39.5