The npm run verify command runs all pre-submit checks in sequence, giving you a single command to validate your changes before pushing.
npm run verifyIf all steps pass, your changes are ready to submit.
Steps run in order, and the command stops on the first failure:
| Step | Command | What it checks |
|---|---|---|
| Lint | npm run lint |
Code quality and style rules via ESLint |
| Format | npm run format |
Code formatting consistency via Prettier |
| Build | npm run build |
TypeScript compilation |
| Test | npm test -- --runInBand |
Unit tests via Jest |
| Compat | npm run test:compat |
Runtime compatibility across Node.js and browser |
ESLint reports code quality issues. To auto-fix common problems:
npm run lint -- --fixPrettier enforces consistent code formatting. To auto-fix formatting issues:
npm run formatTypeScript compilation errors. Read the compiler output — it will tell you the exact file, line, and problem.
Jest output shows which tests failed and why. Run a single test file to isolate issues:
npm test -- path/to/test.tsRuntime compatibility checks failed. See Runtime Compatibility for supported environments and guidance.