diff --git a/frontend/src/App.spec.js b/frontend/src/App.spec.js index 77adc7084..b338481e6 100644 --- a/frontend/src/App.spec.js +++ b/frontend/src/App.spec.js @@ -1,5 +1,6 @@ import { mount, RouterLinkStub } from '@vue/test-utils' import App from './App' +import flushPromises from 'flush-promises' const localVue = global.localVue const mockStoreCommit = jest.fn() @@ -49,7 +50,8 @@ describe('App', () => { }) describe('route requires authorization', () => { - beforeEach(() => { + beforeEach(async () => { + await flushPromises() mocks.$route.meta.requiresAuth = true wrapper = Wrapper() })