mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	Also: - Added svg loading support (dummy stub) for jest. - Updated headless test case due to node changes. - Split out editor change detected to where appropriate. - Added functions to help with testing, like mocking our context.
		
			
				
	
	
		
			15 lines
		
	
	
		
			377 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			377 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// This is a basic transformer stub to help jest handle SVG files.
 | 
						|
// Essentially blanks them since we don't really need to involve them
 | 
						|
// in our tests (yet).
 | 
						|
module.exports = {
 | 
						|
    process() {
 | 
						|
        return {
 | 
						|
            code: 'module.exports = \'\';',
 | 
						|
        };
 | 
						|
    },
 | 
						|
    getCacheKey() {
 | 
						|
        // The output is always the same.
 | 
						|
        return 'svgTransform';
 | 
						|
    },
 | 
						|
};
 |