Files
xahau.js/packages/xrpl/karma-setup.js
2023-02-03 17:03:07 -06:00

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