-
Notifications
You must be signed in to change notification settings - Fork 21
Multiple fixes around vitest #1386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Review Summary✅ Prek ChecksFixed linting issues:
🔍 Code ReviewFound 4 critical issues requiring attention: 1.
|
… file than all files
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
| logger.debug("Converting CommonJS to ES Module syntax") | ||
| # For ESM target: convert any require statements, even if there are also import statements | ||
| # This handles generated tests that have ESM imports for test globals but CommonJS for the function | ||
| if target_module_system == ModuleSystem.ES_MODULE and has_require: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Fixed in latest commit - test has been removed
⚡️ Codeflash found optimizations for this PR📄 31% (0.31x) speedup for
|
Before: Coverage required for ALL languages (blocked JavaScript)
if not coverage_critic(...) or not quantity_of_tests_critic(...):
return Failure("The threshold for test confidence was not met.")
After: Coverage only required for Python
if not quantity_of_tests_critic(...):
return Failure("...insufficient tests.")
if is_python() and not coverage_critic(...):
return Failure("...insufficient coverage.")
The key improvement is that coverage is still enforced for Python (good practice), but skipped for JavaScript/TypeScript where we don't have coverage infrastructure yet.