Test harnesses for components and pages. Write one once and it drives your component in jsdom,
Playwright, Cypress, Ember, WebdriverIO and more.
class LoginFormHarness extends ComponentHarness {
@ByLabel('Email') private accessor email!: Query
async signInAs(email: string, password: string) { … }
}
// the same class, in jsdom or a real browser
await new LoginFormHarness(pw(page)).signInAs(…)
Enums that are real classes. The label, the CSS class, or what comes next lives on the value,
not in an if/else ladder in every template. Adapters for WarpDrive, TanStack Query, SWR, RTK
Query, Apollo and urql.
class OrderState extends Enum {
static Pending = new OrderState('pending')
static Shipped = new OrderState('shipped')
@is() accessor isPending!: boolean
get className() { return `badge badge--${this.value}` }
}
Declarative, accessible forms for Ember. Labels, ids, errors, aria-invalid, dirty state and
nested saves are handled; bring any Standard Schema validator and any data layer.
<Form @model={{@user}} @validator={{userSchema}} @onSubmit={{@save}} as |f|>
<f.Field @for="email" @control="email" @label="Email" />
<f.Field @for="plan" @control="select" @options={{@plans}} />
</Form>
shadcn/ui for Ember: every component and example, accessible to WCAG 2.2 AA, with an axe
audit in every test and a harness for each one. shadcn's styles, Tailwind optional.
<Dialog as |d|>
<Button @variant="outline" {{d.trigger}}>Edit profile</Button>
<d.Content>
<d.Title>Edit profile</d.Title>
</d.Content>
</Dialog>
Statecharts for Ember, written as classes. States are real-enums values, events are decorated
methods, context is tracked fields: everything xstate does, on the same semantics, with the
diagram drawn from the code.
class Fetch extends Machine<FetchState> {
@tracked user?: User
@transition({ from: FetchState.Idle, to: FetchState.Loading })
fetch() {}
@invoke(FetchState.Loading, { onDone: FetchState.Done })
async load(signal: AbortSignal) { … }
}