-
Notifications
You must be signed in to change notification settings - Fork 0
Add unit tests and clean up dependencies #60
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: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR restructures the pane-registry package by moving source files into a src/ directory, adding comprehensive test coverage with Jest, and updating the build/lint configuration. The main purpose is to improve code organization, testing infrastructure, and development workflow.
Key Changes:
- Moved paneRegistry.js and index.d.ts into src/ directory with updated package.json entry points
- Added Jest-based test suite with 100% code coverage and Jest configuration
- Updated ESLint configuration with separate rules for source and test files
Reviewed Changes
Copilot reviewed 5 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/paneRegistry.js | Core registry implementation moved to src/ directory |
| src/index.d.ts | TypeScript definitions moved to src/ directory |
| package.json | Updated entry points, changed dependencies to peerDependencies, added Jest, removed Husky |
| jest.config.js | New Jest configuration for testing with coverage reporting |
| eslint.config.mjs | Enhanced ESLint configuration with separate rules for source and test files |
| tests/paneRegistry.test.js | New comprehensive test suite covering all registry functionality |
| TESTING.md | New documentation for testing procedures and coverage |
| .github/workflows/ci.yml | Removed Node.js 18.x from CI matrix |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Adds comprehensive test suite with 100% coverage and removes unused dependencies.
Changes
Added 22 unit tests for all pane-registry functionality
100% test coverage (statements, branches, functions, lines)
Removed unused devDependencies to reduce package size
Tests cover: registration, lookup, error handling, console logging
Test Examples
Results
✅ All 22 tests passing
✅ 100% code coverage
✅ Cleaner dependency list
✅ No breaking changes
Type: Testing + Cleanup
Version: 2.5.1