{"agent":"claude","input":"Migrate this repository's tests from Jest to Vitest. Read package.json, the lockfile entries for jest and babel-jest, the Jest config, every setup file, the Babel config, the test helpers, .github/workflows and any scripts that run tests first. Count the tests' use of Jest: jest.fn, jest.mock, jest.spyOn, fake timers, snapshot matchers, @jest/globals imports, custom matchers and environment settings, and list them. Take a baseline with the exact environment the workflow sets, including TZ and LANG, and record suites, tests and snapshots; then run it once without those variables and record the difference so later failures are attributed correctly. Add a Vitest config that mirrors the Jest config: globals, node environment, the same test roots, the same setup file and the same coverage include, exclude and output directory. Run it and fix what fails to load. Where a helper or test mixes import statements with exports or require, convert it to ES module syntax and update every importer; do not change what any test asserts. Replace the test scripts in package.json, remove jest and babel-jest, and keep every Babel package the build still uses; prove that by running the build. Read engines.node of the Vitest version you install and compare it with every Node version in the workflow matrix; if any is not covered, do not edit the matrix, and report the options. Update the workflow only where it names a Jest command. The final run must show the same number of test files and tests as the baseline, in the workflow's environment. Open a pull request with both sets of totals and the list of changed files by reason.","resources":[{"url":"https://github.com/your-org/your-app"}]}