Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMove lib/*.js files used only in tests to tests/lib (or something) #143
Comments
|
Keeping test utils in their own directory in Do you have any examples of this? |
|
The two I can think of are There is also Are there others you noticed, @JasonEtco? |
While reviewing github/docs-internal#15734, I had a difficult time grokking which code was used during runtime vs. only in tests/local scripts. I've thought that a couple of times - we don't currently have a clear separation of that code. Generally speaking,
libis used for runtime code - stuff to run the server. Code solely used for tests often lives in like atests/helpersdirectory or something.Interested in how y'all feel @github/docs-engineering, if this is just me or if others have felt this confusion as well.