I ran my test suite four times in a row one afternoon while debugging a flaky endpoint, and by the time I checked my OpenAI usage dashboard I'd burned through more credits than I meant to spend that whole week. Nothing had even broken — the tests were just... running, and every single one of th...
Source: [Dev.to](https://dev.to/gerale30/i-kept-burning-api-credits-every-time-i-ran-my-test-suite-heres-how-i-fixed-it-5gh8)