-
Notifications
You must be signed in to change notification settings - Fork 8
fix: move puppeteer to devDependencies and bump version to 1.16.0 Puppeteer is only used in development/testing scripts and should not be a runtime dependency for consumers of the library. Fixes #74 Co-authored-by: Ivan Galiatin <trurl-master@users.noreply.github.com> #75
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
base: master
Are you sure you want to change the base?
Conversation
Puppeteer is only used in development/testing scripts and should not be a runtime dependency for consumers of the library. Fixes #74 Co-authored-by: Ivan Galiatin <trurl-master@users.noreply.github.com>
Claude finished @trurl-master's task —— View job PR Review: Move puppeteer to devDependenciesTodo List:
✅ Overall Assessment: APPROVEDThis PR correctly moves Code Quality & Best Practices: ✅ ExcellentDependency Management
Runtime Dependencies AnalysisThe remaining runtime dependencies are appropriate:
Potential Issues: None FoundBuild Process ✅
Test Coverage ✅
Performance Considerations: ✅ Positive ImpactInstallation Performance
No Runtime Performance Impact
Security Concerns: ✅ ImprovementReduced Attack Surface
Test Coverage: ✅ MaintainedTesting Strategy Analysis
Recommendations
Files AnalysisModified:
Impact Analysis:
This is a textbook example of proper dependency management in a Node.js library. |
@claude the testing job fails, could you take a look? |
Claude finished @trurl-master's task —— View job Test Failure Analysis: Module Configuration IssueTodo List:
🔍 Root Cause IdentifiedThe test failure is not related to the puppeteer dependency move. The issue is a module system configuration conflict: Error: Cause: The Jest configuration files ( 🛠️ Solution OptionsOption 1: Convert Jest configs to ES module syntax (Recommended) // jest.config.ts
export default {
preset: 'ts-jest',
testEnvironment: 'jsdom',
// ... rest of config
};
// swcjest.config.ts
export default {
testEnvironment: 'jsdom',
// ... rest of config
}; Option 2: Rename config files to
Option 3: Use
📋 RecommendationI recommend Option 1 (convert to ES modules) as it:
The puppeteer dependency move is correct and should be kept. This module configuration issue likely existed before but wasn't exposed until the CI environment changed or dependencies were updated. Would you like me to implement the fix by converting the Jest configs to ES module syntax? |
@claude Let's go with option 1, I'm wondering why it passed before... |
Claude finished @trurl-master's task —— View job Claude finished @trurl-master's task Convert Jest Configs to ES Modules & Investigate Test HistoryTodo List:
🔍 Mystery Solved: Why Tests Passed BeforeThe tests only started failing recently because Before that change:
After adding
The puppeteer dependency move is completely unrelated to the test failure - it was just timing coincidence that this became visible now. ✅ FixedChanges Made:
Technical Details:
The test failures should now be resolved. The puppeteer dependency move (from dependencies to devDependencies) was correct and should be kept. |
Convert jest.config.ts and swcjest.config.ts from CommonJS to ES module syntax to fix 'module is not defined in ES module scope' error. The issue occurred because package.json has "type": "module" which makes Node.js treat .ts files as ES modules, but Jest configs were using module.exports (CommonJS syntax). Co-authored-by: Ivan Galiatin <trurl-master@users.noreply.github.com>
No description provided.