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

Setup foundation for unit and component tests that would work nicely with next.js, typescript and playwright #43

Closed
aorumbayev opened this issue Jun 11, 2022 · 3 comments
Labels
help wanted Extra attention is needed tests

Comments

@aorumbayev
Copy link
Contributor

aorumbayev commented Jun 11, 2022

Issue have been completed by @leetdev, due to a bug on Gitcoin, bounty was paid out manually. Ticket is to be closed after response from Gitcoin support team.

Goal

  1. Setup and integrate jest and React Testing Library into algoworld-swapper that would work with typescript, nextjs and playwright without compatibility issues or over bloating config files at the root folder.

  2. After the integration is ready, implement at least 1 unit and component test for a page and helper method in utils folder of your preference to showcase this initial testing setup.

  3. After those initial tests are written, make sure to update the CI github action workflow to trigger unit tests on each PR.

  4. Make sure that test execution from CI produces artifacts for coverage reporting.

Further notes

When goal is completed, submit a PR against master branch, make sure to fill the PR template and describe the changes in detail. If you picked up this issue and something isn't clear simply leave a comment and tag me in the issue and Ill reach out with clarifications.

If you have proposal for an alternative framework for testing for this stack, please suggest in the comment to the issue.

@aorumbayev aorumbayev changed the title Integrate jest and write initial batch of unit tests for utils folder Integrate jest and write initial batch of unit tests for utils folder Jun 11, 2022
@aorumbayev aorumbayev changed the title Integrate jest and write initial batch of unit tests for utils folder Setup initial jest integration that would work nicely with next.js, typescript and playwright Jun 21, 2022
@aorumbayev aorumbayev changed the title Setup initial jest integration that would work nicely with next.js, typescript and playwright Setup foundation for unit and component tests that would work nicely with next.js, typescript and playwright Jun 21, 2022
@aorumbayev aorumbayev added tests help wanted Extra attention is needed labels Jun 21, 2022
@leetdev leetdev mentioned this issue Jun 24, 2022
4 tasks
@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 200.0 ALGO (68.21 USD @ $0.34/ALGO) has been submitted by:

  1. @leetdev

@aorumbayev please take a look at the submitted work:


@aorumbayev
Copy link
Contributor Author

bounty was paid out manually due to bug on gitcoin - closing issue

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 200.0 ALGO (67.54 USD @ $0.34/ALGO) attached to this issue has been approved & issued to @leetdev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed tests
Projects
None yet
Development

No branches or pull requests

2 participants