Jan Kassens
b82220b20f
Prittier printing of snapshots ( #1190 )
...
This uses a custom snapshot serializer to reduce escaping in snapshot files and
make them easier to read.
Snapshot serializers are documented here:
https://facebook.github.io/jest/docs/configuration.html#snapshotserializers-array-string
2017-04-12 13:41:51 -07:00
Christopher Chedeau
c3199359b0
Revert "Improve snapshot naming" ( #1070 )
...
* Revert "Remove mutation in `printBinaryishExpressions` (#1067 )"
This reverts commit e7312ad7b2
.
* Revert "Make it clear what parser was used in each snapshot (#1068 )"
This reverts commit 4f7ae4815b
.
2017-03-21 17:38:28 -07:00
ChristianHersevoort
4f7ae4815b
Make it clear what parser was used in each snapshot ( #1068 )
2017-03-21 14:47:23 -07:00
Rogelio Guzman
d45e157563
Upgrade to Jest 19 ( #762 )
...
* Upgrade to Jest 19
* Use exact versions for Jest
2017-02-21 13:59:19 -08:00
Christopher Chedeau
fb52e7a5c8
Do not put a newline on empty `{}` for functions ( #447 )
...
The original intent of it was for `if then else` and `try catch` as they aren't likely to be empty, but it accidentally caught function bodys, which have many valid reasons to be empty. Let's special case those out.
2017-01-24 12:37:01 -05:00
Christopher Chedeau
74bc9e7a4d
Add newline for empty blocks {} ( #205 )
...
I find it weird to put `{}` together. So I figured I would change it to have an empty line and ask for feedback :)
![image](https://cloud.githubusercontent.com/assets/197597/21739279/062adc80-d44c-11e6-8bb7-5e0768f3ddde.png )
Beware: most of the test cases are not representative of real code, you almost never define blocks with no content in practice.
2017-01-16 11:31:32 -05:00
Benjamin Tan
f70c9ec6d1
Don't break to new line if logical/loop statements are without brackets. ( #194 )
...
Closes #14 .
2017-01-14 23:37:13 -05:00
Rogelio Guzman
63c87b6cd0
Add tests for tabWiths option
2017-01-13 13:25:13 -05:00