{"library":"stencil-awesome-test","title":"stencil-awesome-test","type":"library","description":"Provides generic test utilities for Stencil components, currently at version 1.0.6. Designed to simplify unit testing of Stencil-built web components, with TypeScript definitions included. Key differentiator: purpose-built for Stencil's testing patterns, reducing boilerplate when using tools like Jest.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install stencil-awesome-test"],"cli":null},"imports":["import { renderTestComponent } from 'stencil-awesome-test';","import { TestComponent } from 'stencil-awesome-test';","import type { ComponentProps } from 'stencil-awesome-test';"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/stencil-awesome-test","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { renderTestComponent } from 'stencil-awesome-test';\nimport { MyComponent } from './my-component';\n\nit('renders with props', async () => {\n  const page = await renderTestComponent({\n    components: [MyComponent],\n    html: '<my-component first=\"John\"></my-component>'\n  });\n  expect(page.root).toBeTruthy();\n  expect(page.root.textContent).toContain('John');\n});","lang":"typescript","description":"Shows how to render a Stencil component with props and assert on the output using the test utility.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}