-
Notifications
You must be signed in to change notification settings - Fork 37
Official test assertion API #337
Comments
Thoughts on API differences:As far as Fusion.js/Uber web projects are concerned, there are two dominant styles: Jasmine-style ( Jasmine-stylepros
cons
Assert-stylepros
cons
Other misc considerations
|
Thumb up this comment if you prefer Jest API |
Thumb up this comment if you prefer Assert (Tape) API |
There's also potential that we can take what we have with the |
These are some things we'd like to see in the
|
+1 for @lassedamgaard's suggestion on For a similar assertion but without the deep comparison: |
Couldn't we already use |
My current thoughts are that as of right now we should just use default jest globals for testing (describe, test/it, expect). I think that it's possible to make them better, but we're spread fairly thin at the moment, and the jest stuff has a large team working on it, is actively developed, and documented very well. I think that deferring to jest here for the time being is better than trying to invent and maintain a new wheel. |
Throwing in some way-too-late thoughts here:
Taking the example you cite (
I've rarely found the need to expand beyond the default Jest descriptions and if I do,
Can you give an example of where a harness would be greatly preferred over using Jest's lifecycle methods? (I'm sure they exist, I'm just not familiar with them)
Unclear what this means, can you clarify? Overall, my biggest issue with how Fusion provides utility by e.g. wrapping |
It has been raised that the current test API used by Fusion.js'
yarn test
command is limited compared to the underlying framework (Jest). This is due to historical reasons (compatibility with older projects at Uber), but can be improved nonetheless.The purpose of this discussion thread is to shed some light into what test assertion API flavor Fusion.js consumers prefer, and pros and cons of each API flavor
The text was updated successfully, but these errors were encountered: