File size: 509 Bytes
93e7af1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script lang="ts">
	import * as Tooltip from '$lib/components/ui/tooltip';
	import * as Sidebar from '$lib/components/ui/sidebar/index.js';
	import Page from '../../../src/routes/+page.svelte';

	let sidebarOpen = $state(false);
</script>

<!--
	Test wrapper that provides necessary context providers for component testing.
	This mirrors the providers from +layout.svelte.
-->
<Tooltip.Provider>
	<Sidebar.Provider bind:open={sidebarOpen}>
		<Page />
	</Sidebar.Provider>
</Tooltip.Provider>