Skip to content

test: 从 node:test 迁移到 vitest - #2

Merged
random-yang merged 1 commit into
mainfrom
test/migrate-to-vitest
Feb 25, 2026
Merged

random-yang merged 1 commit into
mainfrom
test/migrate-to-vitest

Conversation

@random-yang

Copy link
Copy Markdown
Owner

Summary

  • 测试框架从 node:test 迁移到 vitest
  • before/after 替换为 beforeAll/afterAll
  • process.stdout.write 改为 console.log,配合 --silent 参数在测试时静默输出

Test plan

  • 全部 16 个测试文件、144 个测试用例通过

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Feb 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
svg2psd Building Building Preview, Comment Feb 25, 2026 9:34am

@random-yang
random-yang merged commit 1d71972 into main Feb 25, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — f9024cf6 Deployed Feb 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant