mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 08:24:14 -06:00
Fix JS test cases failing on Windows OS
This commit is contained in:
parent
8c06d93303
commit
41a62c8082
@ -7,7 +7,7 @@ const webpackAliasToJestModules = ()=>{
|
||||
Object.keys(webpackShimAlias).forEach((an)=>{
|
||||
// eg - sources: ./pgadmin/static/js/ to '^sources/(.*)$': '<rootDir>/pgadmin/static/js/$1'
|
||||
let ap = webpackShimAlias[an].replace(__dirname, '<rootDir>');
|
||||
if(ap.endsWith('/')) {
|
||||
if(ap.endsWith('/') || ap.endsWith('\\')) {
|
||||
ret[`^${an}/(.*)$`] = ap + '$1';
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user