Skip to content
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

Refactor and improve testing and un-skip skipped test re JSON file output #1752

Merged
merged 2 commits into from
Mar 24, 2021

Conversation

maxjeffos
Copy link
Contributor

@maxjeffos maxjeffos commented Mar 21, 2021

What does this PR do?

Refactor to extract a function for better testability so we can better and more directly test that we can output JSON to a given absolute path and create directories as required without having to run the entire snyk test from the outside in order to do so.

Any background context you want to provide?

Tests in test/jest/acceptance/cli-json-file-output.spec.ts can be flakey and one of them in particular, test --json-file-output can handle an absolute path was recently skipped to unblock other work.

What are the relevant tickets?

Where the test was skipped: 453db4c

@github-actions
Copy link
Contributor

github-actions bot commented Mar 21, 2021

Messages
📖

This PR will not trigger a new version. It doesn't include any commit message with feat or fix.

Generated by 🚫 dangerJS against 20d560b

@maxjeffos maxjeffos force-pushed the test/unskip-and-fix-flakey-test branch from 0506999 to 512cd50 Compare March 21, 2021 15:19
@maxjeffos maxjeffos force-pushed the test/unskip-and-fix-flakey-test branch from 512cd50 to 20d560b Compare March 21, 2021 15:22
@maxjeffos maxjeffos requested review from rontalx and a team March 21, 2021 18:44
@maxjeffos maxjeffos marked this pull request as ready for review March 21, 2021 18:46
@maxjeffos maxjeffos requested a review from a team as a code owner March 21, 2021 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants