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:
| Step | Command | Pass condition | Status |
|---|---|---|---|
| Typecheck | tsc --noEmit | 0 errors, using your tsconfig.json | Available now |
| Test suite | npm test | your test command succeeds | Coming soon |
| Build | npm run build | your 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.

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:
- 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:
- Baseline. Before anything changes, CodeMorph measures how many type errors your JavaScript already has, with
tsc --checkJs. - Convert. A batch of files is converted, each typed against dependencies that are already TypeScript.
- Type-check the project. Not just the new files, so a change that breaks a file elsewhere is caught immediately.
- Repair. If
tscreports 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. - 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
testandbuildscripts from yourpackage.jsonis coming soon, so Jest, Vitest, Vite, Next.js and others will work unchanged. - Locally.
tscruns on your machine against your real dependencies. Runnpm 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.