bump a set of test-related JS libs (#8051)

* bump a set of test-related JS libs

Mostly upgrading jest as I was trying to tackle issues related to
wrong source-maps reporting in jest. This addresses it

* Bumping more things

* lint

* using core-js/stable

* pointing to the right place
This commit is contained in:
Maxime Beauchemin 2019-08-20 15:32:50 -07:00 committed by GitHub
parent 319c1df120
commit d872511e2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3917 additions and 1798 deletions

View File

@ -27,7 +27,6 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: debug-statements

View File

@ -17,6 +17,8 @@
* under the License.
*/
{
"sourceMaps": true,
"retainLines": true,
"presets" : ["airbnb", "@babel/preset-react", "@babel/preset-env"],
"plugins": ["lodash", "@babel/plugin-syntax-dynamic-import", "react-hot-loader/babel"],
"env": {

View File

@ -23,7 +23,7 @@ module.exports = {
'\\.(gif|ttf|eot|svg)$': '<rootDir>/spec/__mocks__/fileMock.js',
'^src/(.*)$': '<rootDir>/src/$1',
},
setupTestFrameworkScriptFile: '<rootDir>/spec/helpers/shim.js',
setupFilesAfterEnv: ['<rootDir>/spec/helpers/shim.js'],
testURL: 'http://localhost',
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
coverageDirectory: '<rootDir>/coverage/',

File diff suppressed because it is too large Load Diff

View File

@ -87,6 +87,7 @@
"brace": "^0.11.1",
"chrono-node": "^1.3.11",
"classnames": "^2.2.5",
"core-js": "^3.2.1",
"d3-array": "^1.2.4",
"d3-color": "^1.2.0",
"d3-scale": "^2.1.2",
@ -139,31 +140,31 @@
"redux-localstorage": "^0.4.1",
"redux-thunk": "^2.1.0",
"redux-undo": "^1.0.0-beta9-9-7",
"regenerator-runtime": "^0.13.3",
"shortid": "^2.2.6",
"underscore": "^1.8.3",
"urijs": "^1.18.10",
"viewport-mercator-project": "^6.1.1"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/node": "^7.2.2",
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/node": "^7.5.5",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.2.3",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0",
"@babel/register": "^7.5.5",
"@types/jest": "^23.3.5",
"@types/react": "^16.4.18",
"@types/react-dom": "^16.0.9",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.1.0",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.4",
"babel-plugin-css-modules-transform": "^1.1.0",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-lodash": "^3.3.4",
"babel-preset-airbnb": "^3.2.0",
"babel-preset-airbnb": "^4.0.1",
"cache-loader": "^1.2.2",
"clean-webpack-plugin": "^0.1.19",
"cross-env": "^5.2.0",
@ -185,9 +186,10 @@
"fetch-mock": "^7.0.0-alpha.6",
"file-loader": "^1.1.11",
"fork-ts-checker-webpack-plugin": "^0.4.9",
"fsevents": "^2.0.7",
"ignore-styles": "^5.0.1",
"imports-loader": "^0.7.1",
"jest": "^24.1.0",
"jest": "^24.8.0",
"jsdom": "9.12.0",
"less": "^3.9.0",
"less-loader": "^4.1.0",
@ -203,7 +205,7 @@
"terser-webpack-plugin": "^1.1.0",
"thread-loader": "^1.2.0",
"transform-loader": "^0.2.3",
"ts-jest": "^24.0.0",
"ts-jest": "^24.0.2",
"ts-loader": "^5.2.0",
"tslint": "^5.11.0",
"tslint-react": "^3.6.0",

View File

@ -17,7 +17,8 @@
* under the License.
*/
/* eslint no-native-reassign: 0 */
import '@babel/polyfill';
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only';
import jsdom from 'jsdom';
import { configure } from 'enzyme';