mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
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:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user