Skip to content

test: add new queue tests for memory store fallback and error handling#358

Merged
bernirosas merged 2 commits intomainfrom
feat/up-coverage-repository
Mar 27, 2026
Merged

test: add new queue tests for memory store fallback and error handling#358
bernirosas merged 2 commits intomainfrom
feat/up-coverage-repository

Conversation

@bernirosas
Copy link
Copy Markdown
Contributor

  • Implemented a test to verify that the queue falls back to the memory store when localStorage is blocked.
  • Added a test to ensure that entries are marked as done when the processor throws an error.
  • Enhanced existing tests for simultaneous entries to ensure robustness.

These changes improve the test coverage and reliability of the queue functionality.

- Implemented a test to verify that the queue falls back to the memory store when localStorage is blocked.
- Added a test to ensure that entries are marked as done when the processor throws an error.
- Enhanced existing tests for simultaneous entries to ensure robustness.

These changes improve the test coverage and reliability of the queue functionality.
@bernirosas bernirosas merged commit 67190bf into main Mar 27, 2026
4 checks passed
@bernirosas bernirosas deleted the feat/up-coverage-repository branch March 27, 2026 12:23
@anonvt anonvt mentioned this pull request Apr 15, 2026
3 tasks
anonvt added a commit that referenced this pull request Apr 15, 2026
## Summary
- Bumps version to `2.8.0`
- Fixes jsdom localStorage test failures on Node.js 25+

## Changes since v2.7.0

### Features
- **Lazy token loading** — events queue when no API token is set and
drain automatically when `window.TS.token` is assigned later (#360)
- **Interactive playground** — new `/demo` page for testing the
analytics library (#359)

### Fixes
- Add `lang` attribute to HTML elements for a11y compliance (#355)
- Configure jsdom for Node 25+ localStorage compatibility
(`--no-experimental-webstorage`)

### Tests
- New queue tests for memory store fallback and error handling (#358)

### Housekeeping
- Dependency bumps: biome, react, express, msw, codecov-action,
checkout, deploy-pages, upload-pages-artifact, pnpm/action-setup
- Added CLAUDE.md (#354)

## Test plan
- [x] `pnpm run lint:ci` passes
- [x] `pnpm run types:check` passes
- [x] `pnpm run test` — 47/47 tests pass (17 test files)

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

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

3 participants