Files
expo-popcore-app/tests/example.test.ts
imeepos 1f9b6e22d6 feat: 添加测试框架和优化项目结构
- 添加 Jest 配置和测试设置
- 添加 use-categories hook 的单元测试
- 更新 CLAUDE.md 添加包管理工具说明
- 优化首页、视频页和频道页的组件结构
- 添加 .claude 命令配置文件
- 移除 bun.lock 和 package-lock.json,统一使用 bun
- 更新 package.json 依赖

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-19 10:53:54 +08:00

16 lines
420 B
TypeScript

describe('示例测试', () => {
it('应该能够运行基本的测试', () => {
expect(1 + 1).toBe(2)
})
it('应该能够测试对象', () => {
const obj = { name: 'test', value: 123 }
expect(obj).toEqual({ name: 'test', value: 123 })
})
it('应该能够测试异步操作', async () => {
const promise = Promise.resolve('success')
await expect(promise).resolves.toBe('success')
})
})