Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix adapter storage jest setup #244

Merged
merged 1 commit into from
May 10, 2024

Conversation

makarkotlov
Copy link

This pr contains the fix for the following error during the tests runtime:

/Users/me/project/node_modules/mixpanel-react-native/javascript/mixpanel-persistent.js:45
        yield this.storageAdapter.getItem((0, _mixpanelConstants.getDeviceIdKey)(token)).then(function (deviceId) {
        
        TypeError: Cannot read properties of undefined (reading 'then')

@zihejia zihejia self-requested a review May 4, 2024 00:12
Copy link
Collaborator

@zihejia zihejia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @makarkotlov !

@zihejia zihejia merged commit e852dd2 into mixpanel:master May 10, 2024
2 of 3 checks passed
@zihejia zihejia added the bug Something isn't working label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants