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

MNT Use React Testing Library #263

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Apr 6, 2023

{ code: 403, message: 'You do not have access to view this campaign.' },
{ code: 404, message: 'The campaign you are looking for can not be found.' },
{ code: 500, message: 'Something went wrong.' },
].forEach(({ code, message }) => {
Copy link
Member Author

@emteknetnz emteknetnz Apr 6, 2023

Choose a reason for hiding this comment

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

I changed it.each() to .forEach() ... it() because these tests were weirdly hanging in my terminal even with all the code inside the loop commented out.

I ended up refactoring the syntax a little elsewhere, though it's still the same test

@emteknetnz emteknetnz force-pushed the pulls/2.0/testing-library branch 3 times, most recently from 29f2c2c to 3a32d33 Compare April 11, 2023 22:45
@emteknetnz emteknetnz changed the title MNT Use react-testing-library MNT Use React Testing Library Apr 11, 2023
@emteknetnz emteknetnz force-pushed the pulls/2.0/testing-library branch from 3a32d33 to 8065d8e Compare April 18, 2023 05:13
@emteknetnz emteknetnz marked this pull request as ready for review April 18, 2023 05:16
@emteknetnz emteknetnz marked this pull request as draft April 21, 2023 11:20
@emteknetnz emteknetnz force-pushed the pulls/2.0/testing-library branch 6 times, most recently from aee3e57 to c00af93 Compare May 1, 2023 02:29
@emteknetnz emteknetnz force-pushed the pulls/2.0/testing-library branch from c00af93 to 3cb0995 Compare May 1, 2023 02:41
@emteknetnz emteknetnz marked this pull request as ready for review May 2, 2023 04:40
Copy link
Contributor

@sabina-talipova sabina-talipova left a comment

Choose a reason for hiding this comment

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

LGTM

@sabina-talipova sabina-talipova merged commit 2e8ca99 into silverstripe:2.0 May 8, 2023
@sabina-talipova sabina-talipova deleted the pulls/2.0/testing-library branch May 8, 2023 01:32
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