testing

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Testing

测试

Commands (Node/Frontend - Vitest)

命令(Node/前端 - Vitest)

  • npm test
    - run tests
  • npm run test:watch
    - watch mode
  • npm run test:ci
    - with coverage
  • npm test
    - 运行测试
  • npm run test:watch
    - 监听模式
  • npm run test:ci
    - 包含测试覆盖率

Workflow

工作流程

  1. Run
    npm test
  2. Report results concisely
  3. Show failing test names and file paths
  1. 运行
    npm test
  2. 简洁地报告测试结果
  3. 显示失败的测试名称及文件路径

Rules

规则

  • Default to
    npm test
  • Don't modify tests unless requested
  • 默认使用
    npm test
    命令
  • 除非用户明确要求,否则不得修改测试内容