MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Wrapper

Function Wrapper

packages/@react-spectrum/s2/test/utils/render.tsx:33–39  ·  view source on GitHub ↗
({children}: {children: React.ReactNode})

Source from the content-addressed store, hash-verified

31 const {locale = 'en-US', colorScheme = 'light', ...restProviderOptions} = providerOptions;
32
33 function Wrapper({children}: {children: React.ReactNode}) {
34 return (
35 <Provider locale={locale} colorScheme={colorScheme} {...restProviderOptions}>
36 {children}
37 </Provider>
38 );
39 }
40
41 return await vitestBrowserRender(<Wrapper>{ui}</Wrapper>);
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected