refactor(web): migrate to Vitest and esm (#29974)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
Stephen Zhou
2025-12-22 16:35:22 +08:00
committed by GitHub
parent 42f7ecda12
commit eabdc5f0eb
268 changed files with 5455 additions and 6307 deletions

View File

@ -1,8 +1,8 @@
import { renderHook } from '@testing-library/react'
import useTimestamp from './use-timestamp'
jest.mock('@/context/app-context', () => ({
useAppContext: jest.fn(() => ({
vi.mock('@/context/app-context', () => ({
useAppContext: vi.fn(() => ({
userProfile: {
id: '8b18e24b-1ac8-4262-aa5c-e9aa95c76846',
name: 'test',