Skip to content

Develop#4

Merged
levz0r merged 10 commits intomainfrom
develop
Oct 8, 2025
Merged

Develop#4
levz0r merged 10 commits intomainfrom
develop

Conversation

@levz0r
Copy link
Copy Markdown
Owner

@levz0r levz0r commented Oct 8, 2025

No description provided.

lev-engineer and others added 10 commits October 7, 2025 14:14
Test Coverage:
- Unit tests for sanitizeFilename() function (23 tests)
- Manifest validation tests for Chrome and Firefox (21 tests)
- Build validation tests for package creation (17 tests)
- Total: 61 passing tests

Tools Added:
- Jest for unit and integration testing
- ESLint for code quality and linting
- Prettier for code formatting
- GitHub Actions workflow for CI/CD testing on Blacksmith runners

New Scripts:
- pnpm test - Run all tests
- pnpm test:watch - Run tests in watch mode
- pnpm test:coverage - Run tests with coverage report
- pnpm lint - Check code quality
- pnpm lint:fix - Fix linting issues
- pnpm format - Format all code
- pnpm format:check - Check code formatting

Configuration:
- jest.config.js with 80% coverage threshold
- eslint.config.js for extension and Node.js environments
- .prettierrc for consistent code style
- Uses Blacksmith 2vCPU Ubuntu 24.04 runners for 2x faster CI
- GitHub Actions testing on Node 18 and 20
- Remove deprecated .eslintignore file
- Add caughtErrorsIgnorePattern to ESLint config
- Remove unused variables in background.js and popup.js
- Auto-fix formatting issues with Prettier
- All tests, lint, and format checks now pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Run test:coverage instead of test to generate coverage reports
- Add CODECOV_TOKEN to codecov upload step

Note: You'll need to add CODECOV_TOKEN secret in GitHub repository settings:
1. Sign up at https://codecov.io and link your repository
2. Copy the token from Codecov
3. Add it as CODECOV_TOKEN in GitHub Settings > Secrets and variables > Actions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Only collect coverage for utils.js since build.js has no tests.
This ensures coverage thresholds are met (100% statements, 75% branches).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added GitHub Actions workflow that intelligently publishes extensions to Chrome Web Store, Firefox Add-ons, and Edge Add-ons. The workflow checks each store's current version and only publishes where updates are needed, preventing unnecessary submissions.

Features:
- Version checking for Chrome, Firefox, and Edge stores
- Conditional publishing (only to stores that need updates)
- Manual trigger via workflow_dispatch
- Automatic trigger on version tags (v*)
- Detailed publishing summary

Also added:
- publish-browser-extension as devDependency
- PUBLISHING.md guide with setup instructions
- Repository variables and secrets configuration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Resolved conflicts:
- README.md: Kept Firefox Add-ons as Available
- package.json: Kept publish-browser-extension dependency
- pnpm-lock.yaml: Regenerated lockfile

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@levz0r levz0r merged commit 940fae3 into main Oct 8, 2025
2 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2355444) to head (2ad8c89).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #4   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            4         4           
  Branches         1         1           
=========================================
  Hits             4         4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants