Skip to content

Commit

Permalink
Setup new spy instances before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed May 18, 2023
1 parent b8a2698 commit ad2c54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/stores/server.test.ts
Expand Up @@ -62,7 +62,7 @@ let apiGetSpy: SpyInstance;
let replaceQueueSpy: SpyInstance;
let setLanguageSpy: SpyInstance;

beforeAll(() => {
beforeEach(() => {
apiGetSpy = vi.spyOn(api, 'get');
replaceQueueSpy = vi.spyOn(apiFunctions, 'replaceQueue').mockResolvedValue();
setLanguageSpy = vi.spyOn(setLanguageDefault, 'setLanguage').mockResolvedValue(true);
Expand Down

0 comments on commit ad2c54a

Please sign in to comment.