Reuse import mocks possible?
I use the following code to setup a mock for a composable called 'useComposable':
Such that I can alter the mock within each test like this
I tried reusing the setup code for creating the mock as I found it to be a lot of boilerplate code. However, I'm only able to setup the mock within the test itself. Is there a way in which I can import a default mock 'useComposableMock' that I can mock in my tests?
0 Replies