parsed-react-children.test.js — astro Source File
Architecture documentation for parsed-react-children.test.js, a javascript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 8991be7f_829d_f1a8_640c_f337b64f9ea5["parsed-react-children.test.js"] a666610c_128c_44f8_f768_049788a8c5eb["../dist/vnode-children.js"] 8991be7f_829d_f1a8_640c_f337b64f9ea5 --> a666610c_128c_44f8_f768_049788a8c5eb e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"] 8991be7f_829d_f1a8_640c_f337b64f9ea5 --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607 6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"] 8991be7f_829d_f1a8_640c_f337b64f9ea5 --> 6b0635f9_51ea_77aa_767b_7857878e98a6 style 8991be7f_829d_f1a8_640c_f337b64f9ea5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import convert from '../dist/vnode-children.js';
describe('experimental react children', () => {
it('has undefined as children for direct children', () => {
const [imgVNode] = convert('<img src="abc"></img>');
assert.deepEqual(imgVNode.props.children, undefined);
});
it('has undefined as children for nested children', () => {
const [divVNode] = convert('<div><img src="xyz"></img></div>');
const [imgVNode] = divVNode.props.children;
assert.deepEqual(imgVNode.props.children, undefined);
});
});
Domain
Dependencies
- ../dist/vnode-children.js
- node:test
- strict
Source
Frequently Asked Questions
What does parsed-react-children.test.js do?
parsed-react-children.test.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain.
What does parsed-react-children.test.js depend on?
parsed-react-children.test.js imports 3 module(s): ../dist/vnode-children.js, node:test, strict.
Where is parsed-react-children.test.js in the architecture?
parsed-react-children.test.js is located at packages/integrations/react/test/parsed-react-children.test.js (domain: CoreAstro, directory: packages/integrations/react/test).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free