vitest-dev/vitest — reverse-engineered prompt
Reverse engineered prompt
Build me a modern test runner for JavaScript and TypeScript projects that feels familiar if someone has used Jest, but is faster and works naturally with Vite projects. I want people to write tests with describe, it, expect, assert, snapshots, mocks, spies, setup files, filtering, timeouts, watch mode that reruns instantly, coverage reports, browser and DOM testing, component testing for common frontend frameworks, benchmarking, type tests, and projects for monorepos.
It should support TypeScript, JSX, ESM, top level await, and should reuse the same Vite config, plugins, transformers, and resolvers as the app. Add a command line tool so users can run all tests, watch tests, run coverage, shard tests, and get clear reports for failures and uncaught errors. Include good examples, docs, and a small sample test suite showing the API. Use current docs online if you need to.
Want more depth? Deep Reverse