mirror of https://github.com/msgbyte/tailchat
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			12 lines
		
	
	
		
			334 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			12 lines
		
	
	
		
			334 B
		
	
	
	
		
			JavaScript
		
	
// mock
 | 
						|
jest.mock('tailchat-shared/i18n');
 | 
						|
 | 
						|
// https://github.com/testing-library/react-testing-library#suppressing-unnecessary-warnings-on-react-dom-168
 | 
						|
const originalError = console.error;
 | 
						|
console.error = (...args) => {
 | 
						|
  if (/Warning.*not wrapped in act/.test(args[0])) {
 | 
						|
    return;
 | 
						|
  }
 | 
						|
  originalError.call(console, ...args);
 | 
						|
};
 |