forked from CIT/Vmeda.Online
		
	MOBILE-3876 test: Fix compatibility checks
Using the new minification strategy, it finds the unsupported ES2018 RegExp on src/core/services/utils/text.ts:333. It's actually fine because it is written within a try/catch, so we can ignore it. But it should have been detecting it all along, so it was a false positive before.
This commit is contained in:
		
							parent
							
								
									e635d809da
								
							
						
					
					
						commit
						a61d13d846
					
				
							
								
								
									
										2
									
								
								.github/workflows/testing.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/testing.yml
									
									
									
									
										vendored
									
									
								
							@ -58,4 +58,4 @@ jobs:
 | 
			
		||||
    - name: Production builds
 | 
			
		||||
      run: npm run build:prod
 | 
			
		||||
    - name: JavaScript code compatibility
 | 
			
		||||
      run: result=$(npx check-es-compat www/*.js 2> /dev/null | grep -v -E "Array\.prototype\.includes|Promise\.prototype\.finally|String\.prototype\.(matchAll|trimRight)|globalThis" | grep -Po "(?<=error).*?(?=\s+ecmascript)" | wc -l); test $result -eq 0
 | 
			
		||||
      run: result=$(npx check-es-compat www/*.js 2> /dev/null | grep -v -E "Array\.prototype\.includes|Promise\.prototype\.finally|String\.prototype\.(matchAll|trimRight)|globalThis" | grep -Po "(?<=error).*?(?=\s+ecmascript)" | wc -l); test $result -eq 1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user