You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { PassioSDK } from '@passiolife/nutritionai-react-native-sdk-v3'
import { device } from 'detox'
describe('Example', () => {
beforeAll(async () => {
jest.setTimeout(300000) // Set timeout to 5 minutes for long-running tests
await device.launchApp({
permissions: {
location: 'inuse',
camera: 'YES',
notifications: 'YES',
},
})
})
beforeEach(async () => {
await device.reloadReactNative()
})
it('should tap on button by id and expect some text to be visible', async () => {
const result = await PassioSDK.searchForFood('apple')
expect(result).toBe('Hello from Native!') // Check if the returned value is correct
}, 300000)
})
Your environment
Detox version: 20.27.3
React Native version: 0.74.3
Node version: 20
Device model: IOS 15 Pro
OS:
Test-runner (select one): jest
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.
Thank you for your contributions!
For more information on bots in this repository, read this discussion.
Description
sample code
Your environment
Detox version: 20.27.3
React Native version: 0.74.3
Node version: 20
Device model: IOS 15 Pro
OS:
Test-runner (select one): jest
The text was updated successfully, but these errors were encountered: