ReactWrapper.test.ts — astro Source File
Architecture documentation for ReactWrapper.test.ts, a typescript file in the astro codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3adb504b_cb13_eabc_268c_12f582f21589["ReactWrapper.test.ts"] 8cbbd427_6644_a9d1_c819_65972c873cdc["../src/components/ReactWrapper.astro"] 3adb504b_cb13_eabc_268c_12f582f21589 --> 8cbbd427_6644_a9d1_c819_65972c873cdc d1616097_17a0_23f7_d973_9e8481287eaa["astro:container"] 3adb504b_cb13_eabc_268c_12f582f21589 --> d1616097_17a0_23f7_d973_9e8481287eaa 1aafec42_0f39_8429_1c1d_80a79946b271["react"] 3adb504b_cb13_eabc_268c_12f582f21589 --> 1aafec42_0f39_8429_1c1d_80a79946b271 e5359079_11b2_76cc_fb55_2963613c4b02["container"] 3adb504b_cb13_eabc_268c_12f582f21589 --> e5359079_11b2_76cc_fb55_2963613c4b02 3e3298c2_86dd_c820_c444_b15ecaad6b48["vitest"] 3adb504b_cb13_eabc_268c_12f582f21589 --> 3e3298c2_86dd_c820_c444_b15ecaad6b48 style 3adb504b_cb13_eabc_268c_12f582f21589 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { loadRenderers } from 'astro:container';
import { getContainerRenderer } from '@astrojs/react';
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import { expect, test } from 'vitest';
import ReactWrapper from '../src/components/ReactWrapper.astro';
const renderers = await loadRenderers([getContainerRenderer()]);
const container = await AstroContainer.create({
renderers,
});
test('ReactWrapper with react renderer', async () => {
const result = await container.renderToString(ReactWrapper);
expect(result).toContain('Counter');
expect(result).toContain('Count: <!-- -->5');
expect(result, 'Includes client hydration reference').toContain(
'renderer-url="@astrojs/react/client.js"',
);
});
Domain
Dependencies
- ../src/components/ReactWrapper.astro
- astro:container
- container
- react
- vitest
Source
Frequently Asked Questions
What does ReactWrapper.test.ts do?
ReactWrapper.test.ts is a source file in the astro codebase, written in typescript. It belongs to the IntegrationAdapters domain.
What does ReactWrapper.test.ts depend on?
ReactWrapper.test.ts imports 5 module(s): ../src/components/ReactWrapper.astro, astro:container, container, react, vitest.
Where is ReactWrapper.test.ts in the architecture?
ReactWrapper.test.ts is located at examples/container-with-vitest/test/ReactWrapper.test.ts (domain: IntegrationAdapters, directory: examples/container-with-vitest/test).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free