fisker Cheung
179943ccba
Update `@babel/parser` to v7.6.3 ( #6386 )
...
* fix flow_function_parentheses
* fix directives
* fix classes
* fix flow_method
* fix `do`
* fix `decorators`
* fix `comments_closure_typecast`
* fix `comments`
* fix `flow_internal_slot`
* fix `flow_comments`
* fix `flow_type_declarations`
* fix `flow_type_spread`
* fix `functional_composition`
* fix `multiparser_js_css`
* fix `no-semi`
* fix `objects`
* fix `template`
* fix `yield`
* update `flow_method` snap
* fix `empty_paren_comment`
* fix `mdx`
* fix `object_property_comment`
* Update `@babel/parser`
* Update @babel/parser to v7.6.2
* Update yarn.lock
* fix `nullish_coalescing` test
* fix `flow_class_field` test
* fix snapshot
* @babel/parser v7.6.3
* fix tests
* update snap
2019-10-09 14:52:11 +03:00
Wei-Wei Wu
91c20f7fbe
Rename "babylon" with "babel" ( #5647 )
2018-12-27 21:05:19 +08: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
Ashwin Bhat
253716dd49
Fix Flow generic comment positioning ( #5290 )
...
* add test for ensuring that calls with zero arguments look right
2018-10-25 08:44:16 -04:00
Ashwin Bhat
4d4fab39fe
Add support for flow typecast comments ( #5280 )
...
* Add support for flow typecast comments
* Allow whitespace between comment start and colon
Also rename flow-comments.js to utils.js
* fix bug where type annotations could be accidentally created
* use better regex in detecting flow comment whitespace
* fix comment in utils.js
* simplify conditionals and improve comments
* fix lint error
2018-10-23 10:46:20 -04: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
4d23e9081d
Print flow type annotation comments as comments ( #3449 )
2017-12-15 05:11:48 -02:00
Lucas Duailibe
694f9c8588
Print comment after arrow function params ( #3444 )
2017-12-12 01:26:41 -02:00
Brian Ng
32eecabc6d
Stabilize comments on ObjectTypeAnnotation ( #1214 )
2017-04-12 14:13:34 -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
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
b2a8f2de56
Add parenthesis around single argument arrow if comments ( #573 )
...
Fixes #568
2017-02-03 16:14:40 -05:00