Huáng Jùnliàng
eea3065039
Update pathCache in NodePath#_replaceWith ( #12391 )
...
* add tests on regression 12386
* fix: update cache on _replaceWith
* fix: pathCache in replaceWithMultiple could be nullish
* Update packages/babel-traverse/src/path/replacement.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* test: add replaceWith test to traverse
Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-11-24 15:07:20 -05:00
Huáng Jùnliàng
6cb6f9f5ea
test: add tests about behaviour of replaceWithMultiple ( #12309 )
...
* test: add tests about behaviour of replaceWithMultiple
* add more tests
2020-11-04 14:46:53 -05:00
Bogdan Savluk
4108524856
Update prettier to v2 ( #11579 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-07 22:21:33 +02:00
Kenza Houmani
2b082601a7
Fix parentheses on replaceWithMultiple for JSX ( #10598 )
...
* Closes #9851 Fix parentheses on replaceWithMultiple for JSX
* Rename test
* Use generate(ast) directly
2019-11-11 12:36:17 +03:00
Chaitanya Kumar Kamatham
daf0ca8680
Rename "babylon" to "@babel/parser" ( #7937 ) 🎉
2018-05-19 00:03:05 -04:00
Deven Bansod
8b57a3e3b9
Migrate a few packages' tests to use Jest Expect (see below)
...
* Migrate the following packages' tests:
* babel-helper-annotate-as-pure
* babel-helper-module-imports
* babel-helper-transform-fixture-test-runner
* babel-highlight
* babel-node
* babel-plugin-transform-modules-commonjs
* babel-preset-env-standalone
* babel-preset-env
* babel-preset-es2015
* babel-preset-react
* babel-standalone
* babel-template
* babel-traverse
* babel-types
2018-03-24 16:22:10 +05:30
Daniel Tschinder
3e95830646
Migrate to jest ( #7455 )
2018-03-03 10:58:19 +01:00
Henry Zhu
691f90a774
Scoped: change test imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Mauro Bringolf
f0d7d580d5
Added individual test cases for possible errors with path.replaceWith ( #5779 )
2017-05-27 00:22:26 -04:00
MrSpider
5287e13817
Fix replacing function declaration in export default ( fixes #4468 ) ( #5444 )
2017-03-10 11:41:03 -08:00