U21OCB06-Type script with Jest Testing Framework, KPR Institute Engineering and Technology, Autonomous Engineering Institution, Coimbatore, India

Title
U21OCB06-Type script with Jest Testing Framework

Hybrid Event
U21OCB06-Type script with Jest Testing Framework
One Credit Course (OCC) Dept. Level
DATE
May 23, 2025 to May 24, 2025
TIME
09:00 AM to 04:00 PM
DEPARTMENT
CB
TOTAL PARTICIPATES
26
U21OCB06-Type script with Jest Testing Framework U21OCB06-Type script with Jest Testing Framework
Summary

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.


***END***


Still wondering where to begin?
Apply Now

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.

KPRIET - AI Integrated Campus