@antithesishq/bombadil
v0.4.2
Published
Type definitions for writing Bombadil specifications
Readme
@antithesishq/bombadil
Type definitions for writing Bombadil specifications.
Bombadil is property-based testing for web UIs, autonomously exploring and validating correctness properties, finding harder bugs earlier.
Install
npm install --save-dev @antithesishq/bombadilUsage
Re-export the default properties:
export * from "@antithesishq/bombadil/defaults";Or write custom properties:
import { always, eventually, extract, now } from "@antithesishq/bombadil";
const title = extract((state) =>
state.document.querySelector("h1")?.textContent ?? ""
);
export const has_title = always(() => title.current.trim() !== "");Documentation
See the Bombadil repository for full usage instructions and more examples.
