fix: migrate usePainter test from @vue/test-utils to @testing-library/vue

@vue/test-utils was removed from dependencies on main. Replace mount()
with render() from @testing-library/vue.
This commit is contained in:
bymyself
2026-04-14 22:57:02 -07:00
parent af15bfaee3
commit 1d5f979634

View File

@@ -1,5 +1,5 @@
import { createTestingPinia } from '@pinia/testing'
import { mount } from '@vue/test-utils'
import { render } from '@testing-library/vue'
import { setActivePinia } from 'pinia'
import { beforeEach, describe, expect, it, vi } from 'vitest'
import { defineComponent, nextTick, ref } from 'vue'
@@ -114,8 +114,8 @@ function mountPainter(nodeId = 'test-node', initialModelValue = '') {
}
})
const wrapper = mount(Wrapper)
return { painter, wrapper, canvasEl, cursorEl, modelValue }
render(Wrapper)
return { painter, canvasEl, cursorEl, modelValue }
}
describe('usePainter', () => {