MCPcopy
hub / github.com/nuxt/nuxt / testAsyncData

Function testAsyncData

test/nuxt/use-async-data.test.ts:794–798  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

792 })
793
794 function testAsyncData () {
795 return useAsyncData(uniqueKey, handler, {
796 getCachedData,
797 })
798 }
799
800 const { status, data } = await testAsyncData()
801 expect(status.value).toBe('success')

Callers 1

Calls 1

useAsyncDataFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…