Skip to content
pixel-perfect-softwarePublic

About

A test runner for JavaScript and TypeScript that runs Jest projects with Jest's config, command line, matchers and snapshots. Pre-alpha: Vitest support and lazy variables are not built yet.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

190 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provino logo: a tilted test tube holding a check mark, on an indigo-to-green tile

Provino

The Jest suite you already have, on a runner built to be faster: same config, same command line, same matchers, same snapshots.

CI npm version Node.js 22.15 or later, or 24 or later Runs Jest 30 projects License: MIT

provino jest runs a Jest project as it is: the same jest.config and Jest's flags, matchers and mocks. It writes snapshot files byte for byte as Jest does, and exits with Jest's exit codes. There's nothing to migrate: you change the command. Underneath, it's built not to redo work for every test file. Why Provino →

$ pnpm exec provino jest
✅ src/cart.test.ts · 3 tests · 6ms
✅ src/checkout.test.ts · 1 test · 1ms

🎉 4 tests passed in 2 files · 44ms
🐢 slowest: src/cart.test.ts 6ms · src/checkout.test.ts 1ms
snapshots: 1 passed

On a terminal, Provino draws its own live view while the run goes. A pipe, CI, an editor, an AI agent, --verbose and --watch get Jest's text, byte for byte. The output, its flags and the HTML report →

Your project has Under provino jest
jest.config.ts (or .js, .json, a jest key) Read and validated as Jest reads it, presets and projects included
jest --ci -t "checkout" provino jest --ci -t "checkout"
expect, jest.fn, jest.mock Jest's matchers and mock semantics, hoisting included
__snapshots__/*.snap Read and written byte for byte as Jest writes them
babel-jest, ts-jest, @swc/jest Run as Jest runs them; with none, Oxc compiles TypeScript and JSX

✨ Features

  • 🔁 A drop-in command. Jest's command line and config, as they are. A flag Provino can't run yet is refused by name, never silently ignored.
  • 🧪 Checked against the real Jest. Behaviour is checked against goldens recorded from Jest 30.5, and against real Jest running beside it.
  • 📸 Snapshots byte for byte, with -u, --ci and obsolete snapshots handled as Jest handles them.
  • 🧩 Your setup, as it is: projects, moduleNameMapper, your transformers, jsdom and custom environments, and globalSetup.
  • ✏️ Your editor, vscode-jest and neotest-jest, with provino jest as the Jest command.
  • 🦥 Lazy variables, RSpec style: import { lazy } from 'provino' for values that are built on first read, memoized per test and overridden in a nested describe. Lazy variables →
  • 📊 Coverage with --coverage: Istanbul or V8, Jest's reports and thresholds.
  • 🧵 Sharding that balances: Jest's split, or by recorded time.
  • 🤖 Output for people, CI and agents: Provino's own live view in a terminal (--tree and --map add a folder tree and a status map), Jest's text byte for byte wherever a machine reads it, annotations on GitHub Actions, and a compact report under an AI agent, and a single-file HTML report.

📋 Requirements

  • Node.js 22.15 or later, or 24 or later (24 recommended).
  • A Jest project. Provino matches Jest 30.5's behaviour.
import { lazy } from 'provino'

const $ = lazy.let('user', () => ({ name: 'Ada' })).let('greeting', ({ user }) => `hello ${user.name}`)

describe('greeting', () => {
  it('reads what it needs', () => expect($.greeting).toBe('hello Ada'))

  describe('for Grace', () => {
    $.override('user', () => ({ name: 'Grace' }))
    it('sees the override', () => expect($.greeting).toBe('hello Grace'))
  })
})

🚀 Install

Provino is a release candidate. Add it to your Jest project with its Jest dialect (with -w at a pnpm workspace root):

pnpm add -D provino@rc @provino/dialect-jest@rc

A project that uses only provino.config and import … from 'provino' needs provino alone, and installs nothing from Jest.

🧭 Getting started

pnpm exec provino jest --listTests        # the files it would run
pnpm exec provino jest src/cart.test.ts   # one file first
pnpm exec provino jest                    # the whole suite

⌨️ Commands

Command Description
provino jest [flags] [patterns] Run a Jest project, with Jest's command line and exit codes
provino jest --listTests List the test files without running them
provino jest --showConfig Print the config as Provino resolved it
provino jest --clearCache Remove Provino's cache
provino jest --shard=i/n Run one shard; add --timings <file> to cut by recorded time
provino jest --watch Rerun the tests a change reaches; --watchAll reruns them all
provino jest -o Run only the tests for files changed since the last commit
provino --help Every command and option

🚧 Not in place yet

provino vitest comes next. Watch mode (--watch, --watchAll) works, except that --coverage, --collectTests and --detectOpenHandles are refused by name with it, and coverage from saved reports (--merge-reports) is planned. Jest compatibility has the full list. If a test passes under Jest and fails under Provino, that's a bug: please open an issue.

📚 Learn more

🤝 Contributing

Contributions are welcome! See CONTRIBUTING.md to get started.

💸 Support this project

Buy Me A Coffee

📝 License

MIT © Tyler Robertson @ Pixel Perfect Software Inc.. See LICENSE for details, and THIRD_PARTY_NOTICES.md for the code Provino includes from Jest, Vitest and others.

About

A test runner for JavaScript and TypeScript that runs Jest projects with Jest's config, command line, matchers and snapshots. Pre-alpha: Vitest support and lazy variables are not built yet.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages