Skip to content
CodeMorph

Download CodeMorph (Beta)

Free to download. Sign in for CodeMorph AI, or bring your own API key.

Release notes only. Unsubscribe in one click.

Esc
  • No results: ""

Verify

What "verified" means in CodeMorph today, how Run & Verify type-checks your whole project, and how the repair loop works.

A migration is verified when the type-check passes across the whole project:

StepCommandPass conditionStatus
Typechecktsc --noEmit0 errors, using your tsconfig.json Available now
Test suitenpm testyour test command succeeds Coming soon
Buildnpm run buildyour build script succeeds Coming soon

Not "it compiles", not a confidence score. Today, Verify enforces the type-check on every file, across the whole project. Running your tests and build is coming soon. Until it ships, run them yourself after each batch.

Migration finished in the Migrate panel: 3 files migrated, Type check: no errors, the time and cost, a saved checkpoint, and buttons to open the migration report or commit the changes.
Migration finished: type check, time and cost

Run & Verify

Open the Verify tab in Morph, or press Ctrl Shift V from anywhere. Run & Verify checks the whole project, not just the changed files, and shows the step as it runs:

  1. Typecheck · tsc --noEmit, then the error count, for example 0 errors.

When the typecheck is clean, you'll see Migration verified with your typed-file count and strictness, for example 38/38 files typed · strict mode.

The repair loop

Verification also runs during a migration, so problems are caught batch by batch rather than at the end:

  1. Baseline. Before anything changes, CodeMorph measures how many type errors your JavaScript already has, with tsc --checkJs.
  2. Convert. A batch of files is converted, each typed against dependencies that are already TypeScript.
  3. Type-check the project. Not just the new files, so a change that breaks a file elsewhere is caught immediately.
  4. Repair. If tsc reports errors, the exact diagnostics go back to the model for another attempt, a bounded number of times. The output panel shows the repair count per file.
  5. Hand off. Files that still fail stay in review with their diagnostics, instead of being forced through with any.

Your toolchain, as-is

  • TypeScript config. Verify uses your tsconfig.json, including its strictness. Raise the strictness whenever you're ready, and the whole project is held to that bar.
  • Tests and build (coming soon). Running the test and build scripts from your package.json is coming soon, so Jest, Vitest, Vite, Next.js and others will work unchanged.
  • Locally. tsc runs on your machine against your real dependencies. Run npm install (or your package manager's equivalent) first.

If a step fails

  • Typecheck errors. Click through to the file and fix it, or reject the file.
  • Behavior. The type-check proves the types are consistent, not that behavior is unchanged. Run your own tests and build after each batch until Verify runs them for you.

Tip

Your baseline error count is a good measure of how much a migration will catch. On an untyped codebase it's often in the thousands.

Something unclear or out of date? Tell us.