@ferridriver/ct-solid
v0.1.0
Published
Ferridriver component testing adapter for Solid
Maintainers
Readme
@ferridriver/ct-solid
Ferridriver component testing adapter for Solid.
Install
npm install -D @ferridriver/ct-solid @ferridriver/test solid-jsUsage
// counter.ct.ts
import { test, expect } from '@ferridriver/test';
test('counter increments', async ({ page }) => {
await page.locator('#inc').click();
await expect(page.locator('#count')).toHaveText('1');
});npx @ferridriver/test ct --framework solidHow it works
This adapter provides a registerSource.mjs that renders Solid components into a #root element using solid-js/web's render(). The Vite dev server handles compilation.
License
MIT OR Apache-2.0
