MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / waitForHash

Function waitForHash

Example/e2etest/e2e/local-merge.test.ts:77–82  ·  view source on GitHub ↗
(expectedHash: string)

Source from the content-addressed store, hash-verified

75}
76
77async function waitForHash(expectedHash: string) {
78 const visibleHash = expectedHash || '(empty)';
79 await waitFor(element(by.id('current-hash')))
80 .toHaveText(`currentHash: ${visibleHash}`)
81 .withTimeout(RELOAD_TIMEOUT);
82}
83
84async function waitForMarkSuccess() {
85 await waitFor(element(by.id('last-event')))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected