chore: remove manual test file logic#3150
Conversation
|
WalkthroughRemoved 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/runtime-tags/src/__tests__/main.test.ts (1)
31-42:⚠️ Potential issue | 🟠 MajorRemove unused
manual_*properties frominterop.test.tsTestConfig type.The
manual_csr,manual_ssr, andmanual_resumeproperties were removed frommain.test.tsbut remain defined (but unused) ininterop.test.tslines 34-36. Remove these from theTestConfigtype definition ininterop.test.tsto maintain consistency between the two test files.No fixture files depend on these removed properties.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/runtime-tags/src/__tests__/main.test.ts` around lines 31 - 42, Remove the now-unused manual_csr, manual_ssr, and manual_resume properties from the TestConfig type definition (symbol: TestConfig) in the interop.test.ts test file so it matches main.test.ts; simply delete those three property declarations from the TestConfig type and run a quick search for any references to manual_csr/manual_ssr/manual_resume to ensure nothing else depends on them.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@packages/runtime-tags/src/__tests__/main.test.ts`:
- Around line 31-42: Remove the now-unused manual_csr, manual_ssr, and
manual_resume properties from the TestConfig type definition (symbol:
TestConfig) in the interop.test.ts test file so it matches main.test.ts; simply
delete those three property declarations from the TestConfig type and run a
quick search for any references to manual_csr/manual_ssr/manual_resume to ensure
nothing else depends on them.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a702b19c-de52-4fd8-ad14-1acab99dd503
📒 Files selected for processing (1)
packages/runtime-tags/src/__tests__/main.test.ts
de7dbc4 to
6910a9d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3150 +/- ##
=======================================
Coverage 89.57% 89.57%
=======================================
Files 370 370
Lines 47080 47080
Branches 4269 4269
=======================================
Hits 42171 42171
Misses 4857 4857
Partials 52 52 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6910a9d to
d8d3b52
Compare
d8d3b52 to
17f9da7
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/runtime-tags/src/__tests__/main.test.ts`:
- Around line 100-106: config.error_compiler can be true or a string[] so using
it directly in OR gates treats empty arrays as truthy; introduce a boolean like
errorCompilerFlag (e.g., const errorCompilerFlag = config.error_compiler ===
true || (Array.isArray(config.error_compiler) && config.error_compiler.length >
0)) and then replace direct uses of config.error_compiler in the skip logic
(skipSSR, skipCSR, skipResume) with this boolean so empty arrays do not
incorrectly mark skips.
- Around line 84-98: The SSR and CSR configs (ssrCompileOpts and csrCompileOpts)
currently share the same cache Map from compileOpts due to shallow spread,
causing cross-contamination; fix by giving each config its own cache instance
(e.g., set cache: new Map() when creating ssrCompileOpts and cache: new Map()
when creating csrCompileOpts) so SSR and CSR compilations do not reuse the same
cached artifacts.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8999da7b-f70a-4d1d-94aa-a5bfd850d8dc
📒 Files selected for processing (4)
packages/runtime-tags/src/__tests__/fixtures/rest-tag-var/index.markopackages/runtime-tags/src/__tests__/fixtures/rest-tag-var/test.jspackages/runtime-tags/src/__tests__/main.test.tspatches/mocha+11.7.5.patch
✅ Files skipped from review due to trivial changes (1)
- patches/mocha+11.7.5.patch
No description provided.