Huáng Jùnliàng
e94da0dce5
Incorrect trace position in fixture runner ( #10566 )
...
* test: add test case
* fix: incorrect fixture callsite position
2019-12-05 00:35:37 +01:00
Nicolò Ribaudo
b459f6a0a4
Add windows to travis ( #10249 )
...
* Add windows to travis
* Update
* Do not use sh file on windows
* Fix whitespace
* Unify command
* ./ doesn't work on windows
* Remove all ./ usages
* Run windows test before others
* fix: normalize filename when generating sources
sources should be URL.
* fix: replace normalized path to cwd
* chore: add nodePlatform task options
* fix: normalize preset-env filename output
* chore: replace normalized path to CWD on win32 platform
* limit transform-react-source to run on linux and darwin
* test: escapeRegExp on testcases
* test: add test for babel --filename on windows
* test: double babel-node/cli test timeout
* chore: workaround windows build does not stop
* chore: remove redundant condition
* refactor: rename `nodePlatform` to `os`
2019-09-26 20:59:17 +02:00
Nicolò Ribaudo
3e8a5c5e28
Use "validateLogs" for preset-env's debug fixtures ( #10401 )
...
* Add ability to ignore output to the test runner
* Use normal fixtures instead of custom debug-fixtures in preset-env
2019-09-06 17:32:20 +02:00
Nicolò Ribaudo
469a5a71cd
Allow testing logs with @babel/helper-transform-fixture-test-runner ( #10326 )
...
* Add support for logs to transform-fixture-test-runner
* Test some warnings
* Use stderr/stdout, and add a validateLogs test option
* Normalize CWD in logs and rename vars
* Silence preset-env tests
* Restore old methods
2019-08-14 08:03:03 +02:00
Nicolò Ribaudo
889cdb8da5
Use babel-check-duplicated-nodes ( #8768 )
2018-09-25 10:00:48 -05:00
Mateusz Burzyński
1e1a89ca70
Allow regular plugins/presets resolution algorithm for packages outside of the monorepo ( #7582 )
2018-09-07 16:37:10 -07:00
Logan Smyth
1e0b649485
Allow transform-runtime to insert runtime references with absolute paths. ( #8435 )
2018-08-14 16:11:19 -07:00
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
b09c729675
Use expect's instanceOf and toHaveProperty methods
2018-03-27 22:34:25 +05:30
Deven Bansod
db42a5d70f
Migrate babel-preset-es2015 and -next-target tests to use jest expect
2018-03-24 16:22:19 +05:30
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