From 06d17e3d34c7c2ffa0980f77f6fb52a4defb8a33 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Fri, 19 Jun 2026 18:37:35 -0400 Subject: [PATCH] fixed some frontend tests --- frontend/src/__tests__/App.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/__tests__/App.spec.ts b/frontend/src/__tests__/App.spec.ts index 4a4b513..d13a36d 100644 --- a/frontend/src/__tests__/App.spec.ts +++ b/frontend/src/__tests__/App.spec.ts @@ -1,11 +1,18 @@ import { describe, it, expect } from 'vitest' import { mount } from '@vue/test-utils' +import { createMemoryHistory, createRouter } from 'vue-router' import App from '../App.vue' +const mockRouter = createRouter({ + history: createMemoryHistory(), + routes: [{ path: '/', name: 'Home', component: { template: '
' } }], +}) + describe('App', () => { it('mounts renders properly', () => { const wrapper = mount(App, { global: { + plugins: [mockRouter], stubs: { 'router-view': { template: '
You did it!
',