Skip to content

Comments

Add unit tests for JS public API functions#47

Open
EmilioBejasa wants to merge 1 commit intomainfrom
test/js-public-api
Open

Add unit tests for JS public API functions#47
EmilioBejasa wants to merge 1 commit intomainfrom
test/js-public-api

Conversation

@EmilioBejasa
Copy link
Collaborator

Summary

  • Adds 9 unit tests for configure, getAllStoryIds, and getAllStories — the JS functions library consumers call
  • Mocks react-native and react so the tests run in the existing node test environment
  • Covers: unconfigured state, missing/empty storyIndex, correct key extraction, and property mapping

Test plan

  • npm test passes locally (13 tests total: 4 existing + 9 new)
  • CI screenshot-tests job passes

🤖 Generated with Claude Code

…ories)

Co-Authored-By: Claude Opus 4.6 <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.

1 participant