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 Jest configuration for frontend #2994

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Conversation

charlesBochet
Copy link
Member

@charlesBochet charlesBochet commented Dec 14, 2023

Related to #2992

We have never set up jest config correctly in the past. Jest tests should be setup to tests all .ts files (excluding the one not containing any logic or the one that are tied to testing themselves). Mainly, the goals is to cover utils, hooks and selectors.
.tsx components are covered through storybook.

So, I'm excluding:

'states/.+State.ts$',
'contexts/.+Context.ts',
'testing/*',
'tests/*',
'config/*',
'graphql/queries/*',
'graphql/mutations/*',
'graphql/fragments/*',
'types/*',
'constants/*',
'generated-metadata/*',
'generated/*',
'__stories__/*',

@charlesBochet charlesBochet merged commit b04c787 into main Dec 14, 2023
6 of 11 checks passed
@charlesBochet charlesBochet deleted the setup-jest-config branch December 14, 2023 19:08
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.

None yet

1 participant