-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore(test): add tests for react components #231
base: develop
Are you sure you want to change the base?
Conversation
759acf7
to
a8a4d9a
Compare
Quality Gate passedIssues Measures |
'@babel/preset-react', | ||
'@babel/preset-typescript', | ||
], | ||
plugins: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need this plugin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we don't need this because it's for Vite
import {render, screen} from '@testing-library/react' | ||
describe('InstallmentsTotal', () => { | ||
it('should display the right total amount', () => { | ||
render(<IntlProvider locale={"fr"}><InstallmentsTotal totalAmount={1000}/></IntlProvider>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a warning about missing translations in the test's console that we need to check
dea31e7
to
5b57d11
Compare
@FranceBe can you Delete this PR and Branche ? |
Add test script & configuration for adding unit test on react components (Blocks feature)