Nicolò Ribaudo
2d989a983d
Run tests in a native Node.js ESM environment ( #13966 )
2021-12-03 15:32:58 +01:00
Nicolò Ribaudo
d04842a700
Avoid using CJS globals in internal source files ( #12963 )
...
* Lint against CJS globals in modules
* Use `import.meta.url` instead of `__filename` in `src` files
* Prepare fixtures runner for `import.meta.url`
* Use `import.meta.url` instead of `__filename` in `test/index` files
* Remove `__dirname` from remaining test files
dirname
* Avoid using `module` in `src` files
* Avoid using `require` in `src` files
* Avoid using `require` in `test` files
* Update `@types/node`
* Compile dynamic import in `@babel/node`
* Fix windows
* Use `@babel/plugin-proposal-dynamic-import` from npm
2021-03-05 19:55:36 +01:00
Justin Ridgewell
a3f00896f7
Infer names of anonymous functions in logical assignments ( #11658 )
...
This is a partial revert of #11370 , updating the tests to match the [new consensus](https://github.com/babel/proposals/issues/66#issuecomment-636984546 ).
2020-06-03 23:23:40 +02:00
Arun Kumar Mohan
a8061ae7d8
logical-assignment: Do not assign names to anonymous functions ( #11370 )
2020-05-05 16:00:41 +02:00
Justin Ridgewell
661ffbd830
Support more node types in generateUidBasedOnNode ( #11260 )
...
* Support more node types in generateUidBasedOnNode
* More nodes
2020-03-14 16:24:50 +01:00
Nicolò Ribaudo
a677d59a63
Archive syntax plugins enabled by default ( #10820 )
...
* Remove syntax plugins enabled by default
Moved to babel-archive: babel/babel-archive@8f23ddce03
- `@babel/plugin-syntax-async-generators`
- `@babel/plugin-syntax-bigint`
- `@babel/plugin-syntax-dynamic-import`
- `@babel/plugin-syntax-json-strings`
- `@babel/plugin-syntax-nullish-coalescing-operator`
- `@babel/plugin-syntax-object-rest-spread`
- `@babel/plugin-syntax-optional-catch-binding`
- `@babel/plugin-syntax-optional-chaining`
* Fix build script
* Fix jest config
* Remove archived plugins from tests
2020-01-13 00:31:48 +01:00
Logan Smyth
79b2af5997
Format fixture JSON with Prettier. ( #8658 )
2018-09-09 17:57:52 -07:00
Deven Bansod
95894397eb
Migrate babel-cli and babel-generator tests to use jest-expect ( #7549 )
2018-04-11 13:12:56 -05:00
Henry Zhu
901571d72f
Merge pull request #7579 from devenbansod/migrate-to-jest-expect-2
...
Migrate a few packages' tests to use Jest Expect (see below)
2018-03-27 14:43:44 -04:00
Justin Ridgewell
a7bddc02ba
Add ??= to Logical Assignment Operators ( #7623 )
...
`??=` is being merged into the Logical Assignment Operator proposal, and the overall proposal will wait until nullish coalescing is finalized.
2018-03-25 18:58:51 +01:00
Deven Bansod
c8d82d6483
Migrate all remaining fixtures to jest expect
2018-03-24 16:22:20 +05:30
Justin Ridgewell
55bf55398a
Logical Assignment: ensure computed key isn't recomputed ( #7604 )
...
* Logical Assignment: ensure computed key isn't recomputed
* More tests
2018-03-20 23:06:09 +00:00
Justin Ridgewell
7e90d56024
Proposal: Logical Assignment Operators ( #7385 )
...
* Proposal: Logical Assignment Operators
https://github.com/jridgewell/proposal-logical-assignment
I'm bringing it [back](https://github.com/babel/babel/pull/516 ). 😉
* Use expectPlugin
* Add to stage 0 preset
* Add logicalAssignment missing plugin log stuff
2018-02-18 13:56:29 -05:00