Skip to content

Add test suite, ESLint, CI/CD and optimize code#1

Merged
Pdzly merged 1 commit into
mainfrom
claude/optimize-cicd-tests-GR2QH
Feb 12, 2026
Merged

Add test suite, ESLint, CI/CD and optimize code#1
Pdzly merged 1 commit into
mainfrom
claude/optimize-cicd-tests-GR2QH

Conversation

@Pdzly
Copy link
Copy Markdown
Member

@Pdzly Pdzly commented Feb 12, 2026

  • Add 69 unit tests using Node.js built-in test runner covering
    lib/utils.js, lib/cache.js, lib/api.js, and background/background.js
  • Add ESLint with flat config for code quality enforcement
  • Add GitHub Actions CI workflow (lint + test on Node 20/22, XPI packaging)
  • Optimize popup.js: replace while-loop DOM clearing with replaceChildren(),
    extract repeated domain resolution into resolveDomain(), extract
    split/trim/filter patterns into splitLines() and splitCommas()
  • Optimize cache: add updateCachedAlias() and removeCachedAlias() for
    granular cache updates instead of full invalidation on update/delete
  • Remove unused invalidatePrefix() from cache.js

- Add 69 unit tests using Node.js built-in test runner covering
  lib/utils.js, lib/cache.js, lib/api.js, and background/background.js
- Add ESLint with flat config for code quality enforcement
- Add GitHub Actions CI workflow (lint + test on Node 20/22, XPI packaging)
- Optimize popup.js: replace while-loop DOM clearing with replaceChildren(),
  extract repeated domain resolution into resolveDomain(), extract
  split/trim/filter patterns into splitLines() and splitCommas()
- Optimize cache: add updateCachedAlias() and removeCachedAlias() for
  granular cache updates instead of full invalidation on update/delete
- Remove unused invalidatePrefix() from cache.js

https://claude.ai/code/session_014gvV77pkPUkuUy7rh9URFr
@Pdzly Pdzly merged commit f375c25 into main Feb 12, 2026
3 checks passed
@Pdzly Pdzly deleted the claude/optimize-cicd-tests-GR2QH branch February 12, 2026 11:25
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