-
Notifications
You must be signed in to change notification settings - Fork 59.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first local test run requires npm run build
#222
Comments
This issue is stale because it has been open 60 days with no activity. |
For the short term, we've also clarified this in the contributing/development documentation: 054f9ab |
@zeke Why not use the |
Good idea @FarazzShaikh! That might work. Would you care to give it a try and open a PR if it does? |
Will do later today! Could you assign this issue to me so it doesn’t slip my mind? Thank you! |
This does indeed work. Adding the script Also, you might have to change your Actions workflows as @zeke if you're fine with this, I can make the changes to the workflows and the |
@FarazzShaikh We're definitely open to that! FWIW, your PR will receive a message saying we don't accept contributions to workflow files but we're willing to make exceptions for small change sets like what you mentoned. 👍🏻 One suggestion, though, would be to use the |
Sounds good, I’ll make the required changes with |
We've decided not to implement this behavior for the time being. More details: #7713 (comment) |
* New issues from Moz, plus some general tidy-up * Issue github#222 * Issue github#215 & remove unused links * Others from Moz * Moar 404s, syntax, etc. * make fixing changes to links Co-authored-by: Miranda Auhl <miranda@timescale.com> Co-authored-by: Ryan Booz <ryan@timescale.com>
A fresh clone of this repo requires
npm run build
to be run before all the tests will pass. This is an easy thing to forget because you only have to run it once and thennpm test
continues to work without a fresh build.One way we can work around this is by adding a
pretest
script to package.json with a value ofnpm run build
. That way the build will always run first when anyone runsnpm test
.That would solve the immediate problem for first-time contributors, but it would also incur a performance penalty every time you run the tests locally, as the build currently takes ~4 seconds to run on my superfast computer. Maybe 4s doesn't matter much in the grand scheme of things... but it would be nice to not incur that cost.
🤔 What are some ways we can solve this?
cc @github/docs-engineering @jeffmcaffer
The text was updated successfully, but these errors were encountered: