Skip to content

Reading / 2026-06/2026-06-22t185420-code-smells-when-you-get-ai-to-write-your-frontend-tests

Code Smells when you get AI to write your Frontend Tests

Documents 20+ recurring patterns AI tools introduce when generating frontend tests — such as over-mocking, only testing happy paths, and writing tests to match a buggy implementation rather than intended behaviour.

Jun 22, 2026 · tech · How To Test Frontend, How To Test Frontend

Read at the source →

Topics

  • ai-assisted-coding
  • flaky-tests
  • engineering-craft
  • software-engineering
  • developer-productivity

Cited by

  • AI-assisted coding

    Using LLMs as coding collaborators spans a spectrum from inline suggestion to fully autonomous multi-agent pipelines, with active debate about reliability, skill atrophy, security exposure, and what human oversight must remain.

  • Developer productivity

    Developer productivity spans individual workflow habits, organizational systems, and AI tooling — and the sources collectively argue that output speed is the least reliable measure of it.

  • Engineering craft

    Engineering craft is the accumulated discipline of writing, organizing, and maintaining software well — spanning code design, tooling fluency, communication, and the judgment to know when technical excellence actually changes outcomes.

  • Flaky tests

    Flaky tests fail intermittently without code changes, and eliminating them requires tracing root causes across environment inconsistencies, brittle selectors, AI-generated anti-patterns, and test coupling to implementation details.

  • Software engineering

    Software engineering spans craft, process, and judgment — how code is structured, tested, reviewed, deployed, and maintained — and the sources collected here collectively interrogate each layer as AI tooling reshapes who does what and why.

Related

back to /reading