Replies: 1 comment
-
Hi @Tallyb, could you give an example of the state you would like to reset? I assume the test is using
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
beforeEach(() => MockBuilder(MyStore));
beforeEach(() => {
store = ngMocks.get(MyStore);
});
afterEach(() => ??? );
store is a state manager, and the state is kept between tests.
Is there an elegant way to get a fresh instance of the service?
Beta Was this translation helpful? Give feedback.
All reactions