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
blockedBy[]
blocking[]
closedAtDec 12, 2025, 1:49 PM

Create unit tests for Neo.data.Store

Closed v11.17.0 aitesting
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.

tobiu added the ai label on Dec 12, 2025, 1:48 PM
tobiu added the testing label on Dec 12, 2025, 1:48 PM
tobiu assigned to @tobiu on Dec 12, 2025, 1:48 PM
tobiu referenced in commit 28d022b - "Create unit tests for Neo.data.Store #8096" on Dec 12, 2025, 1:48 PM
tobiu closed this issue on Dec 12, 2025, 1:49 PM