-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Upgrade entire suite to Babel 7 #6949
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
5cb0df5
chore: fix linting error in contributing guide
SimenB 8b1be33
Fix for Babel7 bridge package name in documentation. (#6745)
quisido a66a571
Fix a memory leak in Error objects (#6965)
sokra 68eb9a2
chore: add runtimeArgs in VSCode launch.json (#6985)
trivikr 7308bbc
chore: use useDots option in silent reporter (#6984)
SimenB 5c8ec2f
Add badge of vulnerabilities from snyk.io (#6986)
trivikr 67e4c82
[WIP] feat: option to not escape strings in diff messages (#5661)
maciej-ka 3dd29cd
docs: Explain how to rewrite assertions to avoid large irrelevant dif…
pedrottimark 628a3d1
Preserve info from files with matching SHA-1s (#6990)
rubennorte fb20ddd
fix(jest-haste-map): Fixed Haste whitelist generation for scoped modu…
empyrical 2af1c62
chore: add example using babel 7 (#6983)
SimenB 86fc23d
docs: Replace shallow equality with referential identity in `ExpectAP…
pedrottimark c3dc90f
refactor: use execa instead of child_process for VCS commands (#6987)
SimenB 41e0da0
chore: bump package versions (#6978)
SimenB a5cdea2
docs: fix `rejects.toMatch` on `rejects.toThrow` (#6999)
nodkz 1251008
Fix mocking inherited static properties and prototype-less objects (#…
rubennorte 3c39c40
chore: upgrade eslint
SimenB ab06a7b
Fix indentation of template literals in test (#7008)
rubennorte ee751bf
Added method to get an iterator for all files in HasteFS (#7010)
rubennorte 0b77f78
Start babel migration.
milesj c27bcbe
More fixes.
milesj 2a95623
More things.
milesj 3910080
Fix RN.
milesj a228ba6
More updates.
milesj fa41c1f
Update configs.
7ea038b
Update RN support.
c7232be
Rework Babel config loading.
3b0f790
Update deps.
c1a9a2c
Update some deps.
a28d236
Fix rollup build.
7dd89ee
Remove browser build plugin.
dde23de
Target IE8.
0e6cfda
Update to beta RN.
dab8e57
Parser updates.
9abd68b
Upgrade istanbul.
141c901
Rework lazy.
ddb7d28
More work and polish.
6f7d4ab
Use transformSync.
765a38b
Update react-native.
3927ce4
Fix RN tests.
34e0e44
Final fixes.
milesj e0cd570
Minor changes.
milesj 826f29f
Use babel for TS.
milesj 0deb91e
Update deps. Run install.
milesj 294ea06
Update editor support.
milesj 8e3a39d
Add TS argument.
milesj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ untyped-import | |
untyped-type-import | ||
|
||
[version] | ||
^0.75.0 | ||
^0.80.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module.exports = { | ||
// babelrcRoots: ['.', 'packages/*', 'examples/*'], | ||
plugins: [ | ||
// Required by some examples, like react-native. Without this plugin, | ||
// they will simply crash before relative configs can be found. | ||
// '@babel/plugin-proposal-class-properties', | ||
['@babel/plugin-transform-modules-commonjs', {allowTopLevelThis: true}], | ||
], | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
shippedProposals: true, | ||
targets: {node: '6'}, | ||
useBuiltIns: 'usage', | ||
}, | ||
], | ||
'@babel/preset-flow', | ||
// Some tests contain JSX | ||
'@babel/preset-react', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the lowest supported node version for Jest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's 6 now.