From 41a62c80823653d2bcc86d539c20b694cfb25ac5 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Sat, 23 Dec 2023 16:08:05 +0530 Subject: [PATCH] Fix JS test cases failing on Windows OS --- web/jest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/jest.config.js b/web/jest.config.js index 06d03ec8f..cde127bae 100644 --- a/web/jest.config.js +++ b/web/jest.config.js @@ -7,7 +7,7 @@ const webpackAliasToJestModules = ()=>{ Object.keys(webpackShimAlias).forEach((an)=>{ // eg - sources: ./pgadmin/static/js/ to '^sources/(.*)$': '/pgadmin/static/js/$1' let ap = webpackShimAlias[an].replace(__dirname, ''); - if(ap.endsWith('/')) { + if(ap.endsWith('/') || ap.endsWith('\\')) { ret[`^${an}/(.*)$`] = ap + '$1'; return; }