mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
[Test] Run unittest with vitest (#2779)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// @ts-strict-ignore
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import { adjustColor } from '@/utils/colorUtil'
|
||||
|
||||
interface ColorTestCase {
|
||||
@@ -14,7 +16,7 @@ interface ColorTestCase {
|
||||
|
||||
type ColorFormat = 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla'
|
||||
|
||||
jest.mock('lodash', () => ({
|
||||
vi.mock('lodash', () => ({
|
||||
memoize: (fn: any) => fn
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user