Skip to content

test: add unit tests for service worker registration (registerServiceWorker.ts) - #204

Open
Laks04 wants to merge 1 commit into
vicharanashala:mainfrom
Laks04:test/bookmark-toggle
Open

test: add unit tests for service worker registration (registerServiceWorker.ts)#204
Laks04 wants to merge 1 commit into
vicharanashala:mainfrom
Laks04:test/bookmark-toggle

Conversation

@Laks04

@Laks04 Laks04 commented Aug 3, 2026

Copy link
Copy Markdown

What changed
Adds a new test file covering registerServiceWorker.ts — the flag-gated
service worker registration/unregistration logic introduced in #169.
No existing files are modified; this only adds test coverage that the
Offline Mode report itself flagged as missing ("No automated tests were
added for the new code... in this first iteration").

Related issue
Refs #162
Refs #169

Type of change

  • Tests

Area affected

  • Frontend (React / Vite)

CI verification

  • Not run locally — relying on this PR's GitHub Actions run
  • Tests added for previously untested code
  • Single logical change — no existing files touched, addition only

@Laks04 Laks04 changed the title test: add unit tests for bookmark toggle/get test: add unit tests for service worker registration (registerServiceWorker.ts) Aug 3, 2026
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.

1 participant