A comprehensive web component compiler that transforms TypeScript and JSX code into standards-compliant web components with complete development toolchain.
75
Build a comprehensive server-side test suite for a user profile web component using a mock DOM environment. The tests should verify component rendering, property handling, and user interactions without requiring a real browser.
The component to test has the following behavior:
Create tests that validate the following:
@generates
/**
* Test suite for UserProfile component using server-side mock DOM
*/
// Test helper types
interface TestPage {
root: HTMLElement;
body: HTMLElement;
doc: Document;
win: Window;
waitForChanges(): Promise<void>;
}
interface UserProfileComponent {
name: string;
email: string;
bio: string;
}Provides web component development and server-side testing with mock DOM support.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-stencil--coredocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10