-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to babel@7 * Run tests for all versions of React in a single jest process * Add tests against react@16.5 * Simplify test script * Remove unused getTestDeps.js files & adjusted CONTRIBUTING.md info * Create test directories if they are missing
- Loading branch information
Showing
27 changed files
with
10,528 additions
and
34,738 deletions.
There are no files selected for viewing
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,14 @@ | ||
const { NODE_ENV, BABEL_ENV } = process.env | ||
const cjs = NODE_ENV === 'test' || BABEL_ENV === 'commonjs' | ||
const loose = true | ||
|
||
module.exports = { | ||
presets: [['@babel/env', { loose, modules: false }]], | ||
plugins: [ | ||
['@babel/proposal-decorators', { legacy: true }], | ||
['@babel/proposal-object-rest-spread', { loose }], | ||
'@babel/transform-react-jsx', | ||
cjs && ['@babel/transform-modules-commonjs', { loose }], | ||
['@babel/transform-runtime', { useESModules: !cjs }], | ||
].filter(Boolean), | ||
} |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ env: | |
- REACT=16.2 | ||
- REACT=16.3 | ||
- REACT=16.4 | ||
- REACT=16.5 | ||
sudo: false | ||
script: | ||
- npm run lint | ||
|
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.