Files
chore/frontend/src/__tests__/App.spec.ts
T
ryan 06d17e3d34
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m51s
fixed some frontend tests
2026-06-19 18:37:35 -04:00

26 lines
664 B
TypeScript

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: '<div />' } }],
})
describe('App', () => {
it('mounts renders properly', () => {
const wrapper = mount(App, {
global: {
plugins: [mockRouter],
stubs: {
'router-view': {
template: '<div>You did it!</div>',
},
},
},
})
expect(wrapper.text()).toContain('You did it!')
})
})