Skip to content

Evaluate @webext-core/fake-browser for tests #177

@pokutuna

Description

@pokutuna

Investigate whether to replace jest-chrome with @webext-core/fake-browser.

Context:

  • jest-chrome has had no releases since 2020 and does not track the modern MV3 API surface
  • @webext-core/fake-browser is an in-memory implementation of the WebExtension API (not just a mock), actively maintained by the WXT author

Potential benefits:

  • Tests for src/lib/config.ts could exercise real storage.sync behavior (set → get round-trip, onChanged listeners) instead of asserting on hand-rolled mock returns
  • Works with both Jest and Vitest, so a switch can land independently of any test-runner migration

Decide whether the upside is worth the migration effort, then act.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions