Skip to content

v8.0.0

Latest

Choose a tag to compare

@jterrazz jterrazz released this 14 Apr 21:33
· 1 commit to main since this release
b9be999

Breaking: 15 commits between 7.1.0 and 8.0.0, with multiple API changes.

Breaking changes

  • docker() target factory removed. Docker awareness is now an opt-in docker: { envVar, nameLabel, testRunLabel } option on SpecOptions passed alongside command(bin). DockerCliResult class removed — CliResult grew container(name), containerIds, and [Symbol.asyncDispose] guarded on the docker option.
  • toMatchFixture renamed to toMatch on stream/json/filesystem accessors. Callers must pass an explicit extension in the name (e.g. toMatch('valid.txt')).
  • Test-run id is now stable per createSpecificationRunner instance (i.e. per test file under vitest fileParallelism), not per .run() call. Multi-step tests that spawn in one run and inspect in another now see the same container scope.

New

  • StreamAccessor.toContain(substring) — substring assertion on the accessor itself.
  • SpecOptions.transform — normalise stdout/stderr before toMatch comparisons.
  • ContainerAccessor with lazy docker queries: exists, running, status, stdout, stderr, inspect, file(path), exec(cmd), id.
  • Seed handlers with pluggable routing for non-SQL overlays.
  • exec.adapter captures stderr regardless of exit code.