chore: shared vitest conf#2751
Conversation
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a shared Vitest configuration factory in Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment Tip CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.OpenGrep is compatible with Semgrep configurations. Add an |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@devops/vitest.ts`:
- Around line 23-24: The shared vite/ vitest alias has a typo: change both
occurrences of the misspelled alias and path from '@likec4/digram' and
src('digram') to the correct '@likec4/diagram' and src('diagram') so imports
resolve correctly; update the mapping entry where '@likec4/digram' and
src('digram') are defined in devops/vitest.ts to use '@likec4/diagram' and
src('diagram') instead.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 319cd2ea-ce50-4922-b55b-5ca528c3ba14
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (12)
.github/workflows/checks.yamldevops/package.jsondevops/vitest.tspackages/config/vitest.config.tspackages/core/vitest.config.tspackages/diagram/vitest.config.tspackages/generators/vitest.config.tspackages/language-server/vitest.config.tspackages/layouts/vitest.config.tspackages/leanix-bridge/vitest.config.tspackages/likec4/vitest.config.tspackages/react/vite.config.mjs
This pull request introduces a shared Vitest configuration for the monorepo, centralizing and simplifying the test setup across packages. It adds a new
devops/vitest.tsmodule that provides a reusabledefineVitestfunction, updates all package-level Vitest configs to use this shared setup, and makes minor improvements to dependencies and workflow configuration.Summary by CodeRabbit