Registry / testing / j2v
library0.1.2jsnpmunverified

j2v (v0.1.2) is a CLI tool that automates migration from Jest to Vitest for JavaScript/TypeScript projects. It converts Jest configuration to Vitest, generates setup files, and removes Jest dependencies. Releases are occasional. Key differentiators: evaluates Jest config at conversion time (handles derived values), supports globals option, and provides a compatibility list of supported APIs. Limitations: CommonJS setup files break, and code style may not be preserved.

npm install j2v
INSTALL
IMPORT
SIG · J2V
J
j2v
testingjavascriptv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

j2v (CLI)
npx @namchee/j2v
npm install -g @namchee/j2v
Best used via npx/pnpx/bunx to avoid global install
default
import '@namchee/j2v'
const j2v = require('@namchee/j2v')
Not intended for programmatic use; use CLI directly.
CLI options
npx @namchee/j2v --globals --dry-run
j2v --globals --dry-run
Run via npx or after local install.

Run j2v on a project directory with globals enabled in dry-run mode.

npx @namchee/j2v my-project --globals --dry-run # or install locally: pnpm add -D @namchee/j2v pnpm j2v --globals
Debug
Known issues
gotchaCommonJS setup files will break after migration.
fix
Convert .cjs or .js (CJS) setup files to ES modules before running j2v.
affects: >=0.0.0
gotchaCode style (dangling commas, semicolons, etc.) may not be preserved after migration.
fix
Run a formatter like Prettier or Biome after migration.
affects: >=0.0.0
gotchaDerived configuration values (e.g., from variables or functions) will be evaluated to raw values.
fix
Review the generated Vitest config to ensure derived values are correct.
affects: >=0.0.0
deprecatedPackage name is @namchee/j2v, not j2v.
fix
Use @namchee/j2v in install/runtime commands.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module '@namchee/j2v'
Running j2v without installing or using npx.
fix
Use npx @namchee/j2v or install locally.
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  ERR_PNPM_UNEXPECTED_PKG_CONTENT  j2v
Local binary not found when running via pnpm script.
fix
Add '@namchee/j2v' to devDependencies and run via 'pnpm @namchee/j2v' or use pnpx.
TypeError: Cannot read properties of undefined (reading 'config')
Running j2v in a directory without jest.config or package.json with jest config.
fix
Ensure the target directory has a Jest configuration file.
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
packagej2v
j2v — npm install j2v · libregistry