Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there, 👋
I really what you folks got going here with Buildkite Test Analytics! Noticed that we are missing support for Cypress and wanted to contribute to this project but ya'll got some issues with the e2e tests and docs. Hopefully this helps others 👍
Expected behavior
Test pass after fresh install and following
CONTRIBUTING
docs.Actual behavior
End to end tests timeout if
examples/jest
directory is missingnode_modules
.Note: Looks like this is an issue with using
npm
versions6.x
, not sure about7.x
vs the CI which is using8.9.0
. This change makes it work on all versions however.Output
Solution
done()
that's currently in the test can never be reached. The initialexpect
fails the callback method, becauseexpect
throws and the rest of the code in the function can never be reached.promisify
to make the code a bit easier to read and handle the error in tests without a timeout being hitWith this change, the test will still fail w/o
node_modules
in the example folder but the test suite will not timeout and only take ~2s (on my machine).