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

updated unit tests from #477 PR #538

Merged
merged 29 commits into from
Oct 11, 2024
Merged

updated unit tests from #477 PR #538

merged 29 commits into from
Oct 11, 2024

Conversation

vmaineng
Copy link
Contributor

@vmaineng vmaineng commented Sep 15, 2024

What does this PR do?

Related Issues/PRs

This is the PR that was submitted where tests were omitted to meet Alpha deadline.
- https://github.com/LetsGetTechnical/gridiron-survivor/issues/513

Copy link

vercel bot commented Sep 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gridiron-survivor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 0:48am
gridiron-survivor-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 0:48am

Copy link

appwrite bot commented Sep 15, 2024

Gridiron Survivor Application 6616ea581ef9f5521c7d

Function ID Status Action
Your function has been successfully deployed.

Project name: Gridiron Survivor Application
Project ID: 6616ea581ef9f5521c7d

Function ID Status Action
userAuth 6626fef885a9f630442b ready Ready View Logs

Only deployments on the production branch are activated automatically. If you'd like to activate this deployment, navigate to your deployments. Learn more about Appwrite Function deployments.

💡 Did you know?
Cursor pagination performs better than offset pagination when loading further pages

store/dataStore.test.ts Show resolved Hide resolved
utils/utils.test.ts Outdated Show resolved Hide resolved
utils/utils.ts Outdated
return '';
}

const userSelectedTeam = NFLTeams.find((team) => team.teamName === userPick.teamName);
Copy link
Contributor

Choose a reason for hiding this comment

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

@vmaineng I still don't see this as resolved yet?

mockGetUserLeagues.mockResolvedValueOnce([]);
mockGetGameWeek.mockResolvedValueOnce({ week: 1 });
render(<Leagues />);
test('should display GlobalSpinner while loading data', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Chang all test to it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to it

utils/utils.ts Outdated
return '';
}

const userSelectedTeam = NFLTeams.find((team) => team.teamName === userPick.teamName);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't update the core functionality to get test to work. The test should be updated to match the core functionality.

Copy link
Contributor

@chris-nowicki chris-nowicki left a comment

Choose a reason for hiding this comment

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

I'm good with the changes! :)

@vmaineng vmaineng merged commit b4d6f29 into develop Oct 11, 2024
5 checks passed
@vmaineng vmaineng deleted the mai/477-add-tests branch October 11, 2024 22:13
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