Hacker News new | ask | show | jobs
by rileymat2 15 days ago
> It is critical to remember that in the red phase, things like module/exports import failures due to trying to import file paths that don't yet exist, exports that don't yet exist, etc. is not valid TDD. For valid TDD, the test cases must actually run.

Is this for llm purposes? In many forms of TDD a compile error is key to the red phase. And you are going from red to green before asserts even exist is part of the process.

1 comments

For the TypeScript projects that I work in, if there is value in a compile error phase I am not smart enough to know what it is, heh.