mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	node_tests: Move to web/tests.
This lets us simplify the long-ish ‘../../static/js’ paths, and will remove the need for the ‘zrequire’ wrapper. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
							
								
								
									
										8
									
								
								web/tests/lib/real_jquery.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								web/tests/lib/real_jquery.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
const jquery = require("jquery");
 | 
			
		||||
 | 
			
		||||
// so the tests can mock jQuery
 | 
			
		||||
delete require.cache[require.resolve("jquery")];
 | 
			
		||||
 | 
			
		||||
module.exports = jquery;
 | 
			
		||||
		Reference in New Issue
	
	Block a user