Unit test
A test that verifies a small unit (usually a function) in isolation.
Fast (milliseconds), runs hundreds per build. Mock dependencies. Tools: Jest, Vitest, pytest, JUnit, RSpec. The base of the "test pyramid" — most unit tests, fewer integration tests, fewest E2E.