basic.test.ts 336 B

1234567891011121314
  1. // 基本测试来验证Vitest配置
  2. import { describe, it, expect, vi } from 'vitest';
  3. describe('Basic Vitest Test', () => {
  4. it('should work', () => {
  5. expect(1 + 1).toBe(2);
  6. });
  7. it('should support module mapping', () => {
  8. // 测试模块映射
  9. const testUtil = vi.fn();
  10. expect(testUtil).toBeDefined();
  11. });
  12. });