UNPKG

msal-react-tester

Version:

A npm package to simplify testing react application using msal-react

21 lines (18 loc) 677 B
/*! msal-react-tester v0.3.1 2023-08-10 */ 'use strict'; import { waitFor } from '@testing-library/react'; class MsalReactTesterPlugin { static init(testRunner = null) { if (testRunner) { MsalReactTesterPlugin.TestRunner = testRunner; } } } MsalReactTesterPlugin.TestRunner = { spyOn: typeof jest !== 'undefined' ? jest.spyOn : () => { }, expect: typeof jest !== 'undefined' ? expect : () => { }, resetAllMocks: typeof jest !== 'undefined' ? jest.resetAllMocks : () => { }, waitingFor: typeof jest !== 'undefined' ? waitFor : () => { } }; export { MsalReactTesterPlugin }; //# sourceMappingURL=MsalReactTesterPlugin.js.map