MCPcopy Create free account
hub / github.com/brillout/react-streaming / testCounter

Function testCounter

examples/vike-react/.testRun.ts:180–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178}
179
180async function testCounter() {
181 // autoRetry() for awaiting client-side code loading & executing
182 await autoRetry(
183 async () => {
184 expect(await page.textContent('button')).toBe('Counter 0')
185 await page.click('button')
186 expect(await page.textContent('button')).toContain('Counter 1')
187 },
188 { timeout: 5 * 1000 },
189 )
190}
191
192function testUseConfig() {
193 test('useConfig() HTML', async () => {

Callers 4

testPageFunction · 0.70
testUseConfigFunction · 0.70
testReactSettingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…