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

Update tests #1192

Merged
merged 30 commits into from
Nov 19, 2023
Merged

Update tests #1192

merged 30 commits into from
Nov 19, 2023

Conversation

sashamaryl
Copy link
Collaborator

updates tests in the project with the goal of re-implementing CI integration tests

updated in this pr:

  • integration/
    • auth.test
    • common
    • testutils
    • modifyAccount.test
    • profile.test
    • testimony.test
    • moderation.test
    • moderationComponents.test

profile tests
auth tests
testimony tests
common.ts
moderations.test.ts
moderationcompontents.test.tesx
modifyAccount.test.ts
testutils.ts
@vercel
Copy link

vercel bot commented Jun 29, 2023

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

Name Status Preview Comments Updated (UTC)
maple-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 19, 2023 6:20pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
maple-prod ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2023 6:20pm

@vercel
Copy link

vercel bot commented Jun 29, 2023

@sashamaryl is attempting to deploy a commit to the Maple Testimony Team on Vercel.

A member of the Team first needs to authorize it.

@mvictor55
Copy link
Collaborator

is this aero??

@sashamaryl sashamaryl marked this pull request as ready for review July 9, 2023 15:19
Copy link
Collaborator

@tommagnusson tommagnusson left a comment

Choose a reason for hiding this comment

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

Mostly minor tweaks, thanks for adding tests! I like how you factored out some common helpers within the tests.

I think most of my comments are around types and clarity. Sometimes it's a little tricky to make it clear to a reader what is actually being tested.

firestore.rules Outdated Show resolved Hide resolved
tests/integration/auth.test.ts Show resolved Hide resolved
tests/integration/moderation.test.ts Outdated Show resolved Hide resolved
tests/integration/moderation.test.ts Outdated Show resolved Hide resolved
tests/integration/moderation.test.ts Outdated Show resolved Hide resolved
tests/integration/modifyAccount.test.ts Outdated Show resolved Hide resolved
tests/integration/profile.test.ts Outdated Show resolved Hide resolved
tests/integration/profile.test.ts Outdated Show resolved Hide resolved
tests/integration/profile.test.ts Outdated Show resolved Hide resolved
tests/integration/testimony.test.ts Show resolved Hide resolved
@mvictor55
Copy link
Collaborator

mvictor55 commented Sep 13, 2023

This is currently disabled. Will be a future part of our github flow. We could consider making "update tests" its own epic. Eventually, people will create their own tests as they create components/functions.

the indentation was causing the command to be parsed
as separate lines, but they should be parsed as one long lnie
This fixes a permission error about firebase installations in local dev,
where we don't need analytics anyway
@sashamaryl sashamaryl merged commit 4eeab09 into codeforboston:main Nov 19, 2023
4 checks passed
@sashamaryl sashamaryl deleted the update-tests branch November 19, 2023 18:44
@alexjball alexjball mentioned this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants