fisker Cheung
791996df7b
Set trailingComma default value to es5 ( #6963 )
...
* Set `trailingComma` default value to `es5`
* Update `options` documentation
* Update tests
* style
* fix js code style
* change options order
* update tests_integration snap
* disable es5 for __ng_interpolation
* fix angular tests
* fix scss test
* fix `css_trailing_comma` snap
* fix css_scss snapshot
2019-11-18 11:39:12 +01:00
Ika
4af3dd4b07
test: improve snapshots ( #5521 )
...
- before
```
${input}${"~".repeat(printWidth)}
${output}
```
- after
```
===options===
${options}
${" ".repeat(printWidth)}| printWidth
====input====
${input}
===output====
${output}
=============
```
2018-11-25 16:21:14 +08:00
Simen Bekkhus
51b7c02e12
Upgrade jest to 22 ( #4782 )
...
* chore: upgrade Jest
* chore: update snapshots
* chore: lock down babel dependency using invalid syntax
* 2 args to test.skip
* use jest 22 for now
* Revert "2 args to test.skip"
This reverts commit 691fdc3f99e320f2303958f2b503f7b4c93fa455.
* remove snapshot name from matcher
* fix standalone tests skips
2018-07-03 03:06:29 -03:00
Lucas Duailibe
d00d09bb87
Don't break single argument destructuring arguments ( #3443 )
2017-12-10 12:29:09 -02:00
Lucas Duailibe
f119d4a90f
Change run_spec to have explicit parser list ( #3356 )
2017-11-30 03:31:52 -03:00
Lucas Azzola
188c466cd5
Don't call shouldHugType for function arguments, fixes #2458 ( #2496 )
2017-07-16 11:53:01 +02:00
Christopher Chedeau
f59aeef865
Break inline object first in function arguments ( #1453 ) ( #1173 )
...
This is getting subtle where the groups need to be in a precise position but that works :)
Fixes #1409
2017-05-01 19:12:53 -07:00
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
04eba07aab
Hug on single object destructuring function ( #1022 )
...
This is very common for stateful react functional components. It also matches last object expansion. I think that we should only do that for a single argument in function definitions though, unlike the last for function calls.
Fixes #1019
2017-03-22 09:58:33 -07:00