Practice assignment

Node.js TypeScript take-home project example

HireCheck’s TypeScript assignments are native ESM (“module”: “NodeNext”), so imports use a .js suffix. You get a small Express app, a typed path from route to service to repository, and Vitest + Supertest. The starter type-checks; the provided tests fail until the TODOs are done.

The starter

The payment-webhooks sample on the landing page is the same shape, with a signature check and an idempotent processor instead of an orders API.

Requirements

A typical Node/TypeScript task on HireCheck asks you to:

Concrete examples in this library: orders API, payment webhooks, JWT auth, resilient HTTP client and CSV import.

Grading rubric

AreaPoints
Correctness (provided tests, including hardening)30
Validation, error contract, no leaked internals15
Domain logic (state, money, or the stated invariant)15
Concurrency / idempotency where the brief requires it10
Own tests15
TypeScript quality (strict types, no any, layering)5
NOTES.md trade-offs10

Levels: junior ≥ 60, mid ≥ 75, senior ≥ 85 (and a strong NOTES.md).

What reviewers look for

Common mistakes

How to run it

Node.js 20+. npm ci, then npm test (type-check + Vitest). npm run build && npm start serves on port 3000.

Download the payment-webhooks sample (no account), or generate a TypeScript assignment from a job ad.

Download the Node.js sample ZIP Generate one from a job ad

Related practice tasks

Frequently asked questions

Is this a frontend TypeScript test?
No. These are backend Node.js / Express take-homes, written in TypeScript. There is no React or UI bundle in the starter.
Do I need a database running?
Not for the provided tests. The store is in-memory but behaves like a database (unique constraints, version conflicts). NOTES.md should still discuss PostgreSQL.
Which sample should I download first?
The free Node sample is the payment webhook processor. It is a good picture of signature checks, idempotency and concurrency.

Practice only. This is an original HireCheck practice assignment, not a real employer's take-home, and it is not affiliated with any company mentioned as a role example.