fix: 清理 typecheck 报错并修正迁移列名
- 加入缺失的 @testing-library/dom 依赖(RTL v16 必需 peer),修复 screen 导入 - 修正测试文件错误的相对导入路径(header 改具名导入;prompts/courses 指向 ../page) - 修正联盟/打赏迁移 SQL:Prisma 列名为 camelCase(仅 @@map 映射表名),原 snake_case 列名导致查询 500,已重建表 - npm run typecheck 现已通过(EXIT=0)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import Header from '../header';
|
||||
import { Header } from '../header';
|
||||
|
||||
describe('Header Component', () => {
|
||||
it('should render navigation links', () => {
|
||||
|
||||
Reference in New Issue
Block a user