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.
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