mirror of
				https://github.com/Xahau/xahau.js.git
				synced 2025-11-04 04:55:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			374 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			374 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// the jest.fn() API
 | 
						|
import * as jest from 'jest-mock'
 | 
						|
// The matchers API
 | 
						|
import expect from 'expect'
 | 
						|
 | 
						|
// Add missing Jest functions
 | 
						|
window.test = window.it
 | 
						|
window.test.each = (inputs) => (testName, test) =>
 | 
						|
  inputs.forEach((args) => window.it(testName, () => test(...args)))
 | 
						|
window.test.todo = function () {
 | 
						|
  return undefined
 | 
						|
}
 | 
						|
window.jest = jest
 | 
						|
window.expect = expect
 |