[Test] Run unittest with vitest (#2779)

This commit is contained in:
Chenlei Hu
2025-02-28 22:09:17 -05:00
committed by GitHub
parent 7d92e453ef
commit a814f9f902
33 changed files with 293 additions and 4114 deletions

View File

@@ -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
}))