dnalborczyk
adae1501ac
update jest (major), babel-jest (major) ( #8341 )
...
updated `jest` and `babel-jest` to `v23`
fixed breaking change in `jest`:
- https://github.com/facebook/jest/blob/master/CHANGELOG.md#2300
- https://github.com/facebook/jest/pull/5558
_edit:_
forgot to mention. test runner fix is based on: https://github.com/babel/babel/blob/master/packages/babel-parser/test/helpers/runFixtureTests.js#L11
2018-07-19 10:43:35 -04:00
Mateusz Burzyński
e1662759ed
Remove regenerator hacks in checkDuplicatedNodes ( #8220 )
2018-06-24 15:40:47 +02:00
Brian Ng
5895277b32
Bump prettier to v1.13.2
2018-06-03 07:54:39 -05:00
Logan Smyth
f2882d570a
Tests for react/ts compat and flow/ts compat.
2018-05-21 21:21:00 -07:00
Logan Smyth
51db3e9a5d
Bug fixing for Node 10 ( #7931 )
2018-05-14 23:02:01 -07:00
Logan Smyth
acf509bab5
Upgrade Babel to self-host with beta.46 ( #7784 )
2018-04-27 15:04:37 -07:00
Logan Smyth
4da4728bf5
Add an example of an extremely bad sourcemap merge.
2018-04-25 12:02:05 -07:00
Deven Bansod
4f1473da3d
Remove global chai.assert in fixture runner's test context
2018-04-13 19:14:30 +05:30
Justin Ridgewell
3f72f1d637
Add option to overwrite failing output fixtures ( #7679 )
2018-04-06 12:13:10 -05:00
Deven Bansod
f3f0197890
Migrate babel-core tests to use jest-expect ( #7513 )
...
* Used codemods at: https://gist.github.com/devenbansod/03c5cff857661e076cbec72fcb2e7eb3 along with some manual intervention and review
2018-03-10 11:40:28 +01:00
Logan Smyth
b5e6536f26
Remove the sourceMapTarget option from core and implement it in babel-cli. ( #7500 )
2018-03-09 14:14:25 -08:00
Logan Smyth
53825f8152
Show a more useful diff when comparing fixture files. ( #7520 )
2018-03-07 12:27:10 -08:00
Logan Smyth
7cc00cce0d
Require output fixture extension to match sourceType output.
2018-03-04 13:31:33 -08:00
Logan Smyth
beb99dfda1
Rename test fixtures using module syntax to .mjs files.
2018-03-04 13:31:32 -08:00
Logan Smyth
5f9539e9cc
Rework the testrunner to pass the input filename only.
2018-03-04 13:28:25 -08:00
Daniel Tschinder
3e95830646
Migrate to jest ( #7455 )
2018-03-03 10:58:19 +01:00
Logan Smyth
ddd40bf5c7
Rely entirely on sourceType for module vs script differentiation. ( #7417 )
2018-02-27 18:11:13 -08:00
Nicolò Ribaudo
63ae923987
Add t.cloneNode and deprecate t.clone and t.cloneDeep ( #7149 )
2018-01-29 22:59:06 +01:00
Nicolò Ribaudo
dde9274986
Disallow duplicated nodes in tests output ( #7149 )
2018-01-29 22:59:06 +01:00
Daniel Tschinder
cc66495a95
Unify eslint/prettier config ( #6747 )
...
* Unify eslint/prettier config
Use a prettier config file and correctly configure trailing commas
Enable curly in babylon as in all other packages.
* Add experimental and codemods
2017-11-06 14:19:59 +01:00
Logan Smyth
a25942bda9
Remove unused suppressDeprecationMessages option.
2017-10-25 15:55:57 -07:00
Mateusz Burzyński
859ea4b175
Scoped: updated numerous docs with scoped packages change [skip ci]
2017-10-16 22:49:57 -04:00
Mateusz Burzyński
47fa189053
Scoped: update more babel- to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Logan Smyth
c1df126b83
Remove wrap function and calculate code frames earlier.
2017-10-02 13:48:02 -07:00
Henry Zhu
0f823beeb1
Newlines in fixtures ( #6044 )
...
* write newlines for fixtures
* rerun fixtures
2017-08-02 15:35:29 -04:00
Daniel Tschinder
19c4dd2d8c
Update chai to 4.x ( #6002 )
2017-07-24 15:19:32 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Simen Bekkhus
1e55653ac1
Don't call deprecated code frame export ( #5815 )
2017-06-02 08:49:26 -04:00
Brian Ng
2788a914f6
Add process to test sandbox ( #5410 )
2017-05-19 15:13:23 -04:00
Logan Smyth
6646707e01
Fix 'Unhandled promise rejection (rejection id: 1): ReferenceError: setTimeout is not defined' warning.
2017-05-05 14:13:11 -07:00
Logan Smyth
39eca84642
Use 'resolve' from npm instead of private 'module' methods. ( #5416 )
2017-03-07 12:42:25 -08:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Henry Zhu
9083bd6283
Merge branch 'master' into 7.0
2017-02-09 18:36:02 -05:00
Logan Smyth
6fa6f5924d
[7.0] Run Babel's unittests in a custom sandbox (take 2). ( #5263 )
...
* Run Babel's unittests in a custom sandbox (take 2).
* Add tests for sandboxing behavior.
2017-02-04 13:31:33 -08:00
Logan Smyth
b845f2b69d
Re-enable the max-len ESLint rule. ( #5265 )
2017-02-04 11:07:15 -05:00
Henry Zhu
4106dd3db1
Revert "Run Babel's unittests in a custom sandbox."
2017-01-19 18:43:50 -05:00
Logan Smyth
c76b8eec82
Run Babel's unittests in a custom sandbox. ( #5135 )
2017-01-17 14:46:23 -05:00
Andres Suarez
85b3aec747
Use native or lodash util module where full "lodash" is required
2017-01-15 13:35:00 -08:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Henry Zhu
69a9f6bf70
babel-helper-transform-fixture-test-runner: pass require as a global ( #4999 )
2016-12-16 10:51:37 -05:00
Henry Zhu
cd041541b8
Fix bug + Generate test fixtures if no expected.js ( #4858 )
2016-11-17 17:53:46 -05:00
Henry Zhu
9681b530e9
Allow relative paths in babelrc options in options.json ( #4797 )
2016-11-01 16:58:28 -04:00
Moti Zilberman
b8eeddf960
Automatically generate missing expected.js fixtures ( #4735 )
...
This is much like Babylon's existing behavior around `expected.json`. The equivalent of babel/babylon#188 is already applied here, to guard against silent failure (and a potential false positive) if a test is accidentally committed without its expected.js.
2016-10-17 16:39:32 +02:00
Andrew Levine
9f8ab29213
Change usage of "suite"/"test" in unit-tests to "describe"/"it" ( #4734 )
...
Fixes #4733
2016-10-15 18:45:35 -04:00
Henry Zhu
5ea57d5e9c
fix tests and add exec test
2016-09-27 17:37:21 -04:00
Daniel Tschinder
d6f4d85284
Do not include babel-register in every test ( #3669 )
...
This is not necessary
2016-09-24 14:51:01 +02:00
Henry Zhu
7213e57ee2
add tests, be able to pass preset options to test helper
2016-08-05 09:36:52 -04:00
Jordan Klassen
dc1f40540d
Upgrade to lodash 4 ( #3315 )
...
* Upgrade to lodash 4
* Fix incorrect require in babel-runtime/scripts
* Replace cloneDeep with cloneDeepWith where applicable
2016-05-13 17:15:14 -04:00
Amjad Masad
3667527d04
Revert "Remove flow"
...
This reverts commit 2827ff6b01dcce69e9d3c0402e96b52b3a2a47ee.
2016-03-03 14:49:20 -08:00