Skip to main content

Module expect

Module expect 

Source
Expand description

QuickJS bindings for the expect API — Jest-style value matchers, Playwright web-first matchers, asymmetric matchers, and polling.

All matcher logic delegates to ferridriver_expect so the Rust tests and the script layer share one source of truth (per Rule 1 in CLAUDE.md — Rust is the source of truth; bindings are thin mirrors). Web-first matchers wrap ferridriver::Locator / Page / HttpResponse directly and reuse ferridriver_expect::poll_until for retry semantics that match Playwright.

Structs§

ExpectJs
ExpectPollJs

Functions§

install_expect
Install the expect global. Exposes: