[ ] I have validated my changes against all supported platform versions
Describe the solution you've provided
If a team uses resetMocks: true in their jest config then the mocked functions of launchdarkly-react-client-sdk will return undefined during test execution.
To allow teams using resetMocks to use this package I have pulled the mock implementations into a setupMocks function that can be called in beforeEach.
I haven't updated the documentation to explain this usecase, I'd value feedback on where / how to do that.
Requirements
Describe the solution you've provided
If a team uses
resetMocks: true
in their jest config then the mocked functions oflaunchdarkly-react-client-sdk
will return undefined during test execution.To allow teams using
resetMocks
to use this package I have pulled the mock implementations into asetupMocks
function that can be called inbeforeEach
.I haven't updated the documentation to explain this usecase, I'd value feedback on where / how to do that.