Replies: 2 comments 1 reply
-
What about this one https://github.com/cypress-io/cypress-realworld-app/blob/develop/src/utils/__tests__/transactionUtils.test.ts#L134? The previous ones on the same file that test Shouldn't this be the case of this test too? I mean, shouldn't we have another expectation passing only the status here too? |
Beta Was this translation helpful? Give feedback.
-
Hi @wlsf82, Moved this over to a discussion. I'm certain the unit tests could be updated and feel free to play around with them and submit a PR if you arrive at corrections or additional assertions that could be added. Our goal with these unit tests was to provide a minimum set of foundational unit tests when querying data from the lowdb database, since we do not have the features of a full ORM. With this minimal set of unit tests in place, we were able to round out testing coverage using end-to-end tests. For overall coverage of searching, you can refer to this Cypress test which covers this area of code from an end-to-end perspective - Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
I was exploring the unit tests of the RWA, and I realized that this test describes that it should get a list of users by alpha (username, email) (fuzzy match), but, the implementation is searching by
firstName
instead (see https://github.com/cypress-io/cypress-realworld-app/blob/develop/src/__tests__/users.test.ts#L42.)I just wanted to confirm if this is correct?
Beta Was this translation helpful? Give feedback.
All reactions