Skip to content

Conversation

@zzcr
Copy link
Member

@zzcr zzcr commented Jan 12, 2026

修复未找到单元测试导致git-action报错的问题

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

  • Chores
    • Updated Vitest configuration in the Vue 3 example to proceed without failing when no tests are found.

✏️ Tip: You can customize this high-level summary in your review settings.

@github-actions github-actions bot added the bug Something isn't working label Jan 12, 2026
@coderabbitai
Copy link

coderabbitai bot commented Jan 12, 2026

Walkthrough

A configuration update adds the passWithNoTests: true setting to the Vitest configuration in the Vue 3 example project, allowing tests to pass when no test files are present, consistent with existing configuration patterns.

Changes

Cohort / File(s) Summary
Vitest configuration
examples/vue3/vitest.config.ts
Added passWithNoTests: true to test configuration object, enabling Vitest to succeed when no tests are found

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A little flag so small and true,
passWithNoTests makes configs new,
No tests to run? No need to fear,
The build succeeds, loud and clear! 🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly describes the main change: adding configuration to allow Vitest to pass when no tests are found, which matches the changeset.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zzcr zzcr changed the title fix(vitest): [drawer] allow passing with no tests found in configuration test(vitest): allow passing with no tests found in configuration Jan 12, 2026
@zzcr zzcr changed the title test(vitest): allow passing with no tests found in configuration fix(vitest): allow passing with no tests found in configuration Jan 12, 2026
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 12, 2026
@zzcr zzcr changed the title fix(vitest): allow passing with no tests found in configuration test(vitest): allow passing with no tests found in configuration Jan 12, 2026
@github-actions github-actions bot removed the bug Something isn't working label Jan 12, 2026
@zzcr zzcr changed the title test(vitest): allow passing with no tests found in configuration fix(vitest): allow passing with no tests found in configuration Jan 12, 2026
@github-actions github-actions bot added the bug Something isn't working label Jan 12, 2026
@zzcr zzcr merged commit 23d43d4 into dev Jan 12, 2026
28 of 36 checks passed
@zzcr zzcr deleted the zzc/vitest-ignore-error-0112 branch January 12, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants