fix(migration): verify BookLore v2.4.0 compatibility

This commit is contained in:
neon
2026-09-19 16:52:25 +00:00
parent e0d3d42150
commit 4dabacb2b3
2 changed files with 11 additions and 1 deletions
@@ -130,6 +130,16 @@ describe('MigrationModal reset setup', () => {
)
})
it('shows BookLore compatibility with the latest verified release', async () => {
migrationApiMocks.getWorkflowState.mockResolvedValueOnce({ active: null, hasActiveRun: false })
const wrapper = mountModal()
await flushPromises()
expect(wrapper.text()).toContain('Verified against: v2.4.0')
expect(wrapper.text()).not.toContain('v2.2.2')
})
it('resets saved source setup and clears the form', async () => {
migrationApiMocks.getWorkflowState.mockResolvedValueOnce(sourceState()).mockResolvedValueOnce({ active: null, hasActiveRun: false })
@@ -1292,7 +1292,7 @@ interface SourceTypeCompatibility {
const sourceTypeCompatibility = computed<SourceTypeCompatibility | null>(() => {
const compatibility: Record<string, SourceTypeCompatibility> = {
booklore: {
testedVersions: ['v2.2.2'],
testedVersions: ['v2.4.0'],
note: t('migration.source.compatibility.note'),
},
grimmory: {