Skip to content

Comments

Add unit tests for registerStoriesWithNative#49

Draft
EmilioBejasa wants to merge 1 commit intomainfrom
test/register-stories-with-native
Draft

Add unit tests for registerStoriesWithNative#49
EmilioBejasa wants to merge 1 commit intomainfrom
test/register-stories-with-native

Conversation

@EmilioBejasa
Copy link
Collaborator

Summary

  • Exports registerStoriesWithNative for testing
  • Adds 5 unit tests covering: calling native module with story data, skipping when no stories, skipping when unconfigured, only registering once, and error handling
  • Uses jest.isolateModules to get fresh module state per test

Test plan

  • npm test passes (9 tests: 4 existing + 5 new)
  • CI passes

🤖 Generated with Claude Code

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