test: add new queue tests for memory store fallback and error handling#358
Merged
bernirosas merged 2 commits intomainfrom Mar 27, 2026
Merged
test: add new queue tests for memory store fallback and error handling#358bernirosas merged 2 commits intomainfrom
bernirosas merged 2 commits intomainfrom
Conversation
- 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.
barbmarcio
approved these changes
Mar 27, 2026
Fonsecaaso
approved these changes
Mar 27, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes improve the test coverage and reliability of the queue functionality.