Nicolò Ribaudo
2d989a983d
Run tests in a native Node.js ESM environment ( #13966 )
2021-12-03 15:32:58 +01:00
Nicolò Ribaudo
473f145b27
Don't use ESM for required files in @babel/helpers tests ( #13996 )
2021-11-25 16:19:07 +01:00
Mickey Rose
74bec41db5
fix(helpers): match Reflect.get behaviour ( #13862 )
2021-11-09 17:39:41 +01:00
Nicolò Ribaudo
ea6a438315
Enable external-helpers by default in tests ( #12911 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-02-26 23:33:26 +01:00
Huáng Jùnliàng
4bf36e64da
Create File class for babel helpers ( #10575 )
...
* add test
* fix: pass File to helper traverser
* pass babel.File to helpers.ensure
2020-03-17 09:58:46 +01:00
Logan Smyth
79b2af5997
Format fixture JSON with Prettier. ( #8658 )
2018-09-09 17:57:52 -07:00
Nicolò Ribaudo
8659e1a88c
Remove old expected.{js,json} files ( #7187 )
2018-01-09 13:10:30 -06:00
Raja Sekar
0f42accb87
Renamed files
2018-01-09 15:36:42 +01:00
Logan Smyth
1b4307205e
Limit file-based plugins/presets to only exporting functions. ( #6494 )
2017-10-18 10:17:45 -07:00
Nicolò Ribaudo
977c72250a
Add support for helper dependencies ( #6254 )
...
* Add support for helpers dependencies.
They are used like this:
helpers.main = defineHelper(`
import dep from "dependency";
export default function main() { return dependency; }
`);
helpers.dependency = defineHelper(`ì
export default function dep() { return 0; }
`);
* Clone import references
* Don't make test helpers name depend on the order the tests are run
2017-10-02 10:10:52 -07:00