fix(tests): disable local coverage instrumentation#10776
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (24)
📝 WalkthroughWalkthroughCode coverage instrumentation is made conditional on CI environment variables across 27 Vite configuration files in internal packages, changing ChangesCoverage conditionally enabled in CI
🎯 2 (Simple) | ⏱️ ~12 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
View your CI Pipeline Execution ↗ for commit e48921b
☁️ Nx Cloud last updated this comment at |
Fixes #7757.
Summary
CIis setvite.config.tsfilesValidation
corepack pnpm install --frozen-lockfilecorepack pnpm exec prettier --check $(git diff --name-only -- 'packages/*/vite.config.ts')node --max-old-space-size=8192 node_modules/eslint/bin/eslint.js --concurrency=off -c eslint.config.js $(git diff --name-only -- 'packages/*/vite.config.ts')corepack pnpm --filter @tanstack/eslint-plugin-query exec vitest run src/__tests__/test-utils.test.tsCI=true corepack pnpm exec vitest run src/__tests__/test-utils.test.ts --coverage.reporter=textfrompackages/eslint-plugin-querygit diff --checkNote:
pnpm --filter @tanstack/eslint-plugin-query run test:eslintfails in this Windows checkout before linting becausepackages/eslint-plugin-query/root.eslint.config.jsis materialized as the symlink target text (../../eslint.config.js). I used the root ESLint config directly for the touched files instead.Summary by CodeRabbit