Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.02 KB

README.md

File metadata and controls

21 lines (17 loc) · 1.02 KB

TanStack Oracles

Oracle-based testing for TypeScript: state a law, generate the histories where it matters, and check production against an independent model.

This package is under construction while it is extracted from TanStack DB's oracle suite. It is not published to npm yet; previews are published from every commit with pkg.pr.new.

Packages

  • packages/oracles (@tanstack/oracles): the oracle framework, and the oracle-gaps CLI. The CLI lists the production behaviour that a project's owning oracles leave unexercised or unjudged. A project runs it as oracle-gaps --package <dir> --source <src/x.ts,...>, with --env-prefix set to the prefix that the project passes to configureOracles.
  • packages/eslint-plugin-oracles (@tanstack/eslint-plugin-oracles): the oracle/* lint rules. The rules recognize the framework by its package specifier and by a relative module with its file name. A project names its variable prefix and its replay-selection modules in settings.oracles.