Optionalpath: stringTest a component with its full hierarchy of child components
Test a simple component from code string This is a convenience method for testing component code directly
Optionalprops: Record<string, any>Optionaloptions: Partial<ComponentExecutionOptions>Test a component from a file path This is a convenience method for the CLI
React Test Harness for testing React components in an isolated browser environment
IMPORTANT: Parallel Testing Limitation
This test harness uses a single browser page instance and is NOT safe for parallel test execution on the same instance. For parallel testing, create separate ReactTestHarness instances:
Example
Example