All jobs / Full-stack developer / Testing

Full-stack developer interview question · 3–5 years

How do you test the parts that are not a request — an incoming webhook and a nightly job?

The strongest answer

Call the handler directly with a recorded payload, signature check included, and replay it to prove it is idempotent; run the job’s function against a seeded database and assert the rows it changed

Why it works

Exactly — the schedule and the delivery are infrastructure; the logic behind them is ordinary code you can call with real payloads.

What a good answer covers

Answers that fall short

Who gets asked this

More Testing questions