By the end of this one-credit (foundation) course, learners will be able to:
Author robust TypeScript code: use types, interfaces, enums, generics, unions, and modules; handle async/await and promises; configure tsconfig.json for strict typing and path aliases.
Adopt clean tooling practices: initialize and manage projects with npm, set up scripts, and apply linting/formatting (ESLint/Prettier) to maintain consistent code quality.
Test effectively with Jest: write unit and integration tests using describe/it, assertions, test lifecycle hooks, and snapshots; configure jest.config.ts with ts-jest; test async code, timers, and edge cases.
Mock with confidence: create spies/mocks/stubs for modules, HTTP clients, and databases; use manual/module mocks and dependency injection to isolate units.
Measure and improve quality: generate coverage reports, set coverage thresholds, practice TDD for small features, and refactor code guided by failing/passing tests.
Ship with confidence: run tests in CI (e.g., GitHub Actions), manage environment variables for tests, and document test strategy (test pyramid, naming conventions).
Deliver a capstone artifact: a small TypeScript library or service (e.g., utility package or API client) with a comprehensive Jest test suite, ≥90% statement coverage, typed public API, and README with usage and test instructions.
KPRIET – An AI Integrated Campus
Preparing future-ready engineers with AI-integrated teaching and learning. KPRIET integrates Artificial Intelligence across teaching, learning, research and innovation to create a smarter, future-ready campus experience for students and faculty.