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

Increase test coverage for /modules/views #3211

Merged
merged 9 commits into from
Jan 5, 2024
Merged

Increase test coverage for /modules/views #3211

merged 9 commits into from
Jan 5, 2024

Conversation

gitstart-twenty
Copy link
Contributor

@gitstart-twenty gitstart-twenty commented Jan 3, 2024

COVERAGE REPORT

Screenshot 2024-01-03 at 11 56 54

Fixes #3008

gitstart-twenty and others added 2 commits January 3, 2024 09:00
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: RubensRafael <rubensrafael2@live.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: RubensRafael <rubensrafael2@live.com>
@gitstart-twenty
Copy link
Contributor Author

savedViewSortsFamilySelector has no coverage because it is not used anywhere

@gitstart-twenty gitstart-twenty marked this pull request as ready for review January 3, 2024 09:15
@gitstart-twenty gitstart-twenty added PR: awaiting review scope: front Issues that are affecting the frontend side only labels Jan 3, 2024
Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Thank you, interesting work. I'm planning to refactor view bar and this will be useful
I have left comments

fieldName: 'view',
},
},
] as unknown as ViewField[];
Copy link
Member

Choose a reason for hiding this comment

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

this looks suspicious, we try to avoid this in the codebase

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -0,0 +1,831 @@
import { act } from 'react-dom/test-utils';
Copy link
Member

Choose a reason for hiding this comment

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

this test file is too long and should be broken in smaller files
Intersting work though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright

gitstart-twenty and others added 4 commits January 4, 2024 08:08
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: RubensRafael <rubensrafael2@live.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: RubensRafael <rubensrafael2@live.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: RubensRafael <rubensrafael2@live.com>
Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Thank you!

@charlesBochet charlesBochet merged commit 80c1c9a into main Jan 5, 2024
13 checks passed
@charlesBochet charlesBochet deleted the TWNTY-3008 branch January 5, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: awaiting review scope: front Issues that are affecting the frontend side only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase test coverage for /modules/views
2 participants