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
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
Brian Ng
857c55bd61
Keep parens around do-expressions inside ExpressionStatement ( #4479 )
2018-05-15 11:41:17 -05:00
Lucas Duailibe
f119d4a90f
Change run_spec to have explicit parser list ( #3356 )
2017-11-30 03:31:52 -03:00
Daniel Tschinder
df7311a7f3
Add parens around all string literals at top level ( #1999 )
2017-06-06 08:24:13 -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
ChristianHersevoort
04c959d687
Feature/verify against same snapshot ( #1087 )
...
* Verify parsers against same snapshot
- Reworked run_spec, now accepts 3th optional array argument for
additional parsers to verify against
- Merged duplicate run_spec configs
- Removed duplicate snapshot data
* Formatted run_spec.js with prettier
* Fixed node4 incompatibility
2017-03-25 08:10:17 -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
Christopher Chedeau
443a5d6d66
Properly support `do` ( #811 )
...
The code that supported `do` was likely from some recast time and didn't work anymore.
2017-02-27 10:49:08 -05:00