Skip to content

test(role-helpers): improve coverage of logRoles fn#1248

Open
naorpeled wants to merge 8 commits into
testing-library:mainfrom
naorpeled:fix/role-helpers/make-hidden-great-again
Open

test(role-helpers): improve coverage of logRoles fn#1248
naorpeled wants to merge 8 commits into
testing-library:mainfrom
naorpeled:fix/role-helpers/make-hidden-great-again

Conversation

@naorpeled

@naorpeled naorpeled commented Aug 5, 2023

Copy link
Copy Markdown
Contributor

What:

Increased the tests coverage of the logRoles and prettyRoles functions in the role helpers file,
at the moment cases with hidden = true option were not covered.

Why:

To further understand the scope of #1201 I've added these tests, I think it's good to have them in the repo.

Checklist:

  • Documentation added to the
    docs site
  • Tests
  • TypeScript definitions updated
  • Ready to be merged

@naorpeled naorpeled changed the title feat(role-helpers): add some tests and refine TS types" feat(role-helpers): add some tests and refine TS types Aug 5, 2023

@MatanBobi MatanBobi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this one @naorpeled!
Left a minor comment.

Comment thread src/__tests__/role-helpers.js
@naorpeled naorpeled requested a review from MatanBobi August 6, 2023 10:14
Comment thread src/role-helpers.js Outdated

@timdeschryver timdeschryver left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR @naorpeled.
Because this PR contains 2 changes (types, and additional tests) I think it would be better to also create 2 focused PR.
This makes it easier to follow, and we have more control over the releases/history.

Comment thread types/role-helpers.d.ts Outdated
Comment thread src/__tests__/role-helpers.js Outdated
@naorpeled

Copy link
Copy Markdown
Contributor Author

Thanks for the PR @naorpeled.
Because this PR contains 2 changes (types, and additional tests) I think it would be better to also create 2 focused PR.
This makes it easier to follow, and we have more control over the releases/history.

Fair point.
Will do.

@naorpeled

naorpeled commented Aug 11, 2023

Copy link
Copy Markdown
Contributor Author

@timdeschryver thanks for the great feedback.
I'm heading off to sleep, will make the adjustments tomorrow 🙏

@naorpeled

Copy link
Copy Markdown
Contributor Author

Hey @timdeschryver,
I've updated the PR based on your CR.
Also opened this PR for the type defs.

@naorpeled naorpeled changed the title feat(role-helpers): add some tests and refine TS types test(role-helpers): improve coverage of logRoles fn Aug 12, 2023

@timdeschryver timdeschryver left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.
Sorry, I missed the notification

@naorpeled

Copy link
Copy Markdown
Contributor Author

LGTM.
Sorry, I missed the notification

All good :)
Thanks!

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.

3 participants