-
Notifications
You must be signed in to change notification settings - Fork 0
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
WIP: base for #4883 #4937
base: master
Are you sure you want to change the base?
WIP: base for #4883 #4937
Conversation
// eslint-disable-next-line | ||
const isAlphabet = '^\\pL[ 0-9`\'"\u0060\u00B4\u2018\u2019\u201C\u201D\\pL]*[\\pL0-9]?$' | ||
|
||
const profileConstraints = { |
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.
Please consider moving isAlphabet
and profileConstraints
to the bottom of Profile.ts
. It won't have any technical impact, and will leave the more important/referenced code near the top of the file.
The problem is that the original test was giving a false positive.
Inside the
So while the correct error may have been thrown at some point in the past, it was lost in future revisions but the test kept on saying everything was ok. |
I dug into this. In PR 4187 ('upgrade to RN0.61') there was this comment:
followed by commit f4c7c43 which removed PR 4187 was merged and into 4.27.0. I'm guessing that when @southerneer disabled the jest snapshot tests (*.test.tsx) by removing So ... maybe consider doing the following?:
|
@southerneer Maybe you have idea why original formValidation test 'first name ends with space'' works well but the same firstName doesn't throw error from my refactored copy?
P. S. Btw, I found that rn-chat tests are not run and fail now