LearnNewsExamplesServices
Frontmatter
id8096
titleCreate unit tests for Neo.data.Store
stateClosed
labels
aitesting
assigneestobiu
createdAtDec 12, 2025, 1:48 PM
updatedAtDec 12, 2025, 1:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/8096
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtDec 12, 2025, 1:49 PM

Create unit tests for Neo.data.Store

tobiu
tobiu commented on Dec 12, 2025, 1:48 PM

Create a new unit test file test/playwright/unit/data/Store.spec.mjs to test the functionality of Neo.data.Store.

The initial tests should cover:

  • Store creation.
  • Adding items with default behavior (eager instantiation).
  • Adding items with init: false (lazy instantiation/turbo mode).
  • Verifying initRecord behavior with raw objects.
  • Verifying initRecord optimization (returning existing records).

This ensures the recent optimizations to initRecord and the general Store behavior are covered by automated tests.