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; }