Node.js Developer Assessment Template
A ready-to-run Node.js hiring test covering the event loop, streams, async correctness, error handling, and framework fluency.
What this template measures
Every skill needed for a node.js developer hire, covered across MCQ, coding, and essay questions.
Event Loop Fluency
Microtasks, macrotasks, timers, and process.nextTick semantics.
Async Correctness
Promises, async/await, error propagation, unhandled rejections.
Streams
Readable, Writable, Transform streams and backpressure handling.
API Design
REST/GraphQL endpoint design, middleware, validation, error handling.
Framework Knowledge
Express, Fastify, or NestJS depending on stack focus.
Testing
Vitest, Jest, or node:test plus mocking and integration patterns.
Sample questions from this template
A preview of the questions you'll see when you use this template.
In what order do the following run to completion? ```js console.log('A'); setImmediate(() => console.log('B')); Promise.resolve().then(() => console.log('C')); process.nextTick(() => console.log('D')); console.log('E'); ```
- A.A E D C B
- B.A E C D B
- C.A E B D C
- D.A D C E B
Hint: nextTick runs before Promise microtasks.
Implement `withRetry<T>(fn: () => Promise<T>, opts: { attempts: number; backoffMs: number }): Promise<T>` that retries on rejection with exponential backoff and rethrows the final error.
Build an Express route `POST /upload` that: - Accepts multipart file upload up to 50MB - Streams the file to disk without buffering in memory - Returns `{ size, sha256 }` of the uploaded file - Handles upload errors gracefully
Given an array of 100,000 URLs, fetch all of them with a max concurrency of 20, collecting results and errors. Must not crash on individual failures. Return { successes: Array<{url, status}>, failures: Array<{url, error}> }.
Explain when you'd use worker threads vs child processes in Node.js. Provide one example of each.
Scoring rubric
How candidates are evaluated on this template.
Frequently asked questions
Does this cover Express, NestJS, or Fastify specifically?+
Template is framework-neutral by default. Variants for Express, NestJS, and Fastify available — pick the one matching your stack.
Can I customize this template?+
Yes. Every question, time limit, weighting, and rubric dimension is fully editable. Use the template as a starting point and tailor it to your role and seniority level.
Does this template include AI cheat detection?+
Yes. All ClarityHire assessment templates ship with code coherence AI, keystroke biometrics, and paste detection enabled by default. You can dial integrity level per role.
Can candidates see sample questions before starting?+
Yes. Each template supports unscored practice questions so candidates warm up before the real assessment begins. That way you measure skill, not test anxiety.
Related assessment templates
Other role-specific templates you might want to customize.
Launch Your Node.js Assessment Today
Customize this template and invite candidates in minutes.