MCPcopy
hub / github.com/nuxt/nuxt / setup

Function setup

test/nuxt/error-boundary.test.ts:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 it('should render children when there is no error', () => {
10 const el = mount({
11 setup () {
12 return () => h('div', {}, h(NuxtErrorBoundary, {}, {
13 default: () => h('span', 'default'),
14 error: () => h('span', 'error'),
15 }))
16 },
17 })
18 expect(el.html()).toMatchInlineSnapshot(`"<div><span>default</span></div>"`)
19 el.unmount()

Callers

nothing calls this directly

Calls 2

clearErrorFunction · 0.85
toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…