14 Commits
Author SHA1 Message Date
65b1f4e89e Improve comments generation (#14979)
Co-authored-by: Nicolò Ribaudo <[email protected]>
2022-10-09 17:21:02 +02:00
360e501253 Enable external-helpers by default in tests (#12911)
Co-authored-by: Huáng Jùnliàng <[email protected]>
Co-authored-by: Babel Bot <[email protected]>
2021-02-26 23:33:26 +01:00
Logan SmythandGitHub d57db9a48c Format fixture JSON with Prettier. (#8658) 2018-09-09 17:57:52 -07:00
Justin RidgewellandGitHub 95d0e301b6 Optimize async to generator (#8267)
* Optimize async to generator

We can reuse the step function, avoiding a closure on every invocation.

* Rename step
2018-07-05 10:51:16 -04:00
Logan Smyth a8d8f15e21 Require output fixture extension to match sourceType output. 2018-03-04 13:31:33 -08:00
Logan Smyth def4a287fe Rename test fixtures using module syntax to .mjs files. 2018-03-04 13:31:32 -08:00
Nicolò RibaudoandBrian Ng a1c0d724ae Remove old expected.{js,json} files (#7187) 2018-01-09 13:10:30 -06:00
Raja SekarandNicolò Ribaudo 4b5e34de4e Renamed files 2018-01-09 15:36:42 +01:00
Mateusz BurzyńskiandLogan Smyth fe2423e1bc Fixed asyncToGenerator helper using arrow function (#6289) 2017-09-21 17:09:43 -07:00
Henry ZhuandGitHub 551b23548c Newlines in fixtures (#6044)
* write newlines for fixtures

* rerun fixtures
2017-08-02 15:35:29 -04:00
Daniel TschinderandBrian Ng 5efda75cf8 Remove whitespace generation (#5833)
* Remove whitespace generation and rely on default printing

Changes to printing:
* Add newline after last empty SwitchCase
* Add newlines around block comments if they are non-flow comments or contain newlines

* Fix a few more fixtures
2017-06-27 21:57:02 -05:00
Henry ZhuandBrian Ng 2942ef876e Hardcode to double quotes, indent to 2 spaces (#5824) 2017-06-05 22:14:37 -05:00
Steven HargroveandLogan Smyth 52b8e34449 Fix for #4943 "Calling an async function with default parameter as function for arguments checking handled synchonous" (#5688)
* moved applying arguments inside new Promise handler block

* updated test fixture to reflect change

* corrected the apply to use correct scope and arguments

* added regression test for issue #4943, added async-to-generator/async-default-arguments test

* added regression test for issue #4943

* switched back to using arrow function, since now pointing to v7 release base branch

* simplified async-to-generator regression test for issue #4943, imrproved change to self/arguments refs by using arrow function on returned promise

* updated text fixtures

* removed es2015 preset usage from issue #4943 regression exec test

* added use strict to test fixture

* added use strict to test fixture

* added destructing transform to test options

* removed use strict from exec test

* added parameters & destructing transforms to test
2017-05-03 21:44:41 -07:00
Samuel ReedandLogan Smyth 8e6a812f35 Fix PathHoister hoisting before a same-scope variable declaration.
Seems we didn't have tests running for this very simple case.

Also fixes #5520
2017-05-01 14:32:11 -07:00