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

test: migrate old-snyk-format to jest #2181

Merged
merged 1 commit into from
Aug 23, 2021
Merged

Conversation

Avishagp
Copy link
Contributor

No description provided.

@Avishagp Avishagp requested review from a team as code owners August 22, 2021 15:08
@github-actions
Copy link
Contributor

github-actions bot commented Aug 22, 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 babe22a

import path = require('path');

it('test sensibly bails if gets an old .snyk format', async () => {
try {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The try/catch should be only around the main function under test (config.filter). Otherwise it will catch and incorrectly assert on setup errors.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original test fails at policy.load, will change try/catch accordingly

test/jest/unit/old-snyk-format.spec.ts Outdated Show resolved Hide resolved
@Avishagp Avishagp force-pushed the test/migrate-old-snyk-format branch from 44d0e22 to babe22a Compare August 23, 2021 12:34
@Avishagp Avishagp requested a review from a user August 23, 2021 12:34
@Avishagp Avishagp merged commit 7737f75 into master Aug 23, 2021
@Avishagp Avishagp deleted the test/migrate-old-snyk-format branch August 23, 2021 13:47
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.

1 participant