Skip to content

test(utils): add comprehensive unit tests for createJsonStorage adapter - #792

Open
forumevi wants to merge 1 commit into
tempoxyz:mainfrom
forumevi:patch-1
Open

test(utils): add comprehensive unit tests for createJsonStorage adapter#792
forumevi wants to merge 1 commit into
tempoxyz:mainfrom
forumevi:patch-1

Conversation

@forumevi

Copy link
Copy Markdown

Summary

This PR adds dedicated unit test coverage for the createJsonStorage adapter in test/utils.ts.

Changes Included

  • Added test cases for standard setItem, getItem, and removeItem storage operations.
  • Added test coverage verifying that non-existent storage keys correctly return null.
  • Added test cases for complex nested objects and JSON primitives (numbers, booleans, arrays).

Motivation

Improves unit test coverage for test utility helpers to ensure reliable state isolation across test suites.

Added tests for createJsonStorage functionality including setting, getting, and removing items, as well as handling non-existent items and complex JSON objects.
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@forumevi is attempting to deploy a commit to the Tempo Team on Vercel.

A member of the Team first needs to authorize it.

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