import { mount } from '@vue/test-utils' import { describe, expect, it } from 'vitest' import RuntimeUpdateNotice from '../../components/RuntimeUpdateNotice.vue' describe('RuntimeUpdateNotice', () => { it('should offer one explicit reload action when an update is available', async () => { const wrapper = mount(RuntimeUpdateNotice, { props: { visible: true } }) await wrapper.get('button').trigger('click') expect(wrapper.emitted('reload')).toHaveLength(1) }) })