# An Example of Test-Driven Bugfixing

DevFeed: [An Example of Test-Driven Bugfixing](<https://devfeed.tech/articles/an-example-of-test-driven-bugfixing-21161.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2012/07/an-example-of-test-driven-bugfixing/>)

Published: 2012-07-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Testing](<https://devfeed.tech/topics/testing.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Development](<https://devfeed.tech/topics/development.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [async](<https://devfeed.tech/tags/async.md>), [bug](<https://devfeed.tech/tags/bug.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [regression](<https://devfeed.tech/tags/regression.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A tutorial documenting a test-driven approach to fixing a JavaScript bug. It explains how to create a failing test first, use a fixture instead of contacting the server, rerun the test after the fix, and retain the test as regression protection.

## Source excerpt

Lorem ipsum dolor sit amet