mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-12 08:04:50 -05:00
Fix JS test cases failing on Windows OS
This commit is contained in:
1 parent
8c06d93303
commit
41a62c8082
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user