@@ -24,17 +24,17 @@ | |||
}, | |||
"devDependencies": { | |||
"@types/classnames": "2.2.7", | |||
"@types/enzyme": "3.1.15", | |||
"@types/jest": "23.3.13", | |||
"@types/enzyme": "3.9.0", | |||
"@types/jest": "24.0.11", | |||
"@types/lodash": "4.14.119", | |||
"@types/lunr": "2.3.0", | |||
"@types/react": "16.7.18", | |||
"@types/react-dom": "16.0.11", | |||
"@types/react-helmet": "5.0.8", | |||
"@typescript-eslint/parser": "1.5.0", | |||
"babel-jest": "23.6.0", | |||
"enzyme": "3.8.0", | |||
"enzyme-adapter-react-16": "1.7.1", | |||
"babel-jest": "24.5.0", | |||
"enzyme": "3.9.0", | |||
"enzyme-adapter-react-16": "1.10.0", | |||
"enzyme-to-json": "3.3.5", | |||
"eslint": "5.15.3", | |||
"eslint-config-sonarqube": "0.3.0", | |||
@@ -46,7 +46,7 @@ | |||
"fs-extra": "7.0.1", | |||
"glob-promise": "3.4.0", | |||
"graphql-code-generator": "0.5.2", | |||
"jest": "23.6.0", | |||
"jest": "24.5.0", | |||
"prettier": "1.16.0", | |||
"react-test-renderer": "16.6.0", | |||
"remark": "10.0.1", |
@@ -24,15 +24,15 @@ | |||
"@babel/preset-env": "7.1.0", | |||
"@babel/preset-react": "7.0.0", | |||
"@types/classnames": "2.2.6", | |||
"@types/enzyme": "3.1.14", | |||
"@types/jest": "23.3.7", | |||
"@types/enzyme": "3.9.1", | |||
"@types/jest": "24.0.11", | |||
"@types/lodash": "4.14.117", | |||
"@types/react": "16.8.8", | |||
"@types/react-dom": "16.8.3", | |||
"@typescript-eslint/parser": "1.5.0", | |||
"autoprefixer": "9.3.1", | |||
"babel-core": "7.0.0-bridge.0", | |||
"babel-jest": "23.6.0", | |||
"babel-jest": "24.5.0", | |||
"babel-loader": "8.0.4", | |||
"babel-plugin-dynamic-import-node": "2.2.0", | |||
"babel-plugin-lodash": "3.3.4", | |||
@@ -40,9 +40,9 @@ | |||
"clean-webpack-plugin": "0.1.19", | |||
"copy-webpack-plugin": "4.5.4", | |||
"css-loader": "1.0.0", | |||
"enzyme": "3.7.0", | |||
"enzyme-adapter-react-16": "1.6.0", | |||
"enzyme-to-json": "3.3.4", | |||
"enzyme": "3.9.0", | |||
"enzyme-adapter-react-16": "1.10.0", | |||
"enzyme-to-json": "3.3.5", | |||
"escape-string-regexp": "1.0.5", | |||
"eslint": "5.15.3", | |||
"eslint-config-sonarqube": "0.3.0", | |||
@@ -52,14 +52,14 @@ | |||
"eslint-plugin-react": "7.12.4", | |||
"eslint-plugin-sonarjs": "0.3.0", | |||
"html-webpack-plugin": "3.2.0", | |||
"jest": "23.6.0", | |||
"jest": "24.5.0", | |||
"postcss-calc": "7.0.0", | |||
"postcss-custom-properties": "8.0.8", | |||
"postcss-loader": "3.0.0", | |||
"prettier": "1.14.3", | |||
"react-dev-utils": "5.0.0", | |||
"react-error-overlay": "1.0.7", | |||
"react-test-renderer": "16.8.4", | |||
"react-test-renderer": "16.8.5", | |||
"style-loader": "0.23.1", | |||
"ts-jest": "24.0.0", | |||
"ts-loader": "5.3.3", |
@@ -65,8 +65,8 @@ | |||
"@types/d3-selection": "1.3.2", | |||
"@types/d3-shape": "1.2.4", | |||
"@types/d3-zoom": "1.7.2", | |||
"@types/enzyme": "3.1.14", | |||
"@types/jest": "23.3.7", | |||
"@types/enzyme": "3.9.1", | |||
"@types/jest": "24.0.11", | |||
"@types/keymaster": "1.6.28", | |||
"@types/lodash": "4.14.117", | |||
"@types/prop-types": "15.7.0", | |||
@@ -83,7 +83,7 @@ | |||
"@typescript-eslint/parser": "1.5.0", | |||
"autoprefixer": "9.3.1", | |||
"babel-core": "7.0.0-bridge.0", | |||
"babel-jest": "23.6.0", | |||
"babel-jest": "24.5.0", | |||
"babel-loader": "8.0.4", | |||
"babel-plugin-dynamic-import-node": "2.2.0", | |||
"babel-plugin-lodash": "3.3.4", | |||
@@ -91,9 +91,9 @@ | |||
"clean-webpack-plugin": "0.1.19", | |||
"copy-webpack-plugin": "4.5.4", | |||
"css-loader": "1.0.0", | |||
"enzyme": "3.7.0", | |||
"enzyme-adapter-react-16": "1.6.0", | |||
"enzyme-to-json": "3.3.4", | |||
"enzyme": "3.9.0", | |||
"enzyme-adapter-react-16": "1.10.0", | |||
"enzyme-to-json": "3.3.5", | |||
"escape-string-regexp": "1.0.5", | |||
"eslint": "5.15.3", | |||
"eslint-config-sonarqube": "0.3.0", | |||
@@ -106,7 +106,7 @@ | |||
"glob": "7.1.3", | |||
"glob-promise": "3.4.0", | |||
"html-webpack-plugin": "3.2.0", | |||
"jest": "23.6.0", | |||
"jest": "24.5.0", | |||
"lint-staged": "7.3.0", | |||
"lodash-webpack-plugin": "0.11.5", | |||
"mini-css-extract-plugin": "0.4.4", | |||
@@ -117,7 +117,7 @@ | |||
"raw-loader": "0.5.1", | |||
"react-dev-utils": "5.0.1", | |||
"react-error-overlay": "1.0.7", | |||
"react-test-renderer": "16.8.4", | |||
"react-test-renderer": "16.8.5", | |||
"remark": "9.0.0", | |||
"remark-react": "4.0.3", | |||
"style-loader": "0.23.1", |
@@ -28,7 +28,7 @@ jest.mock('../embed-docs-modal/SuggestionsProvider', () => { | |||
return this.props.children; | |||
} | |||
} | |||
return { default: SuggestionsProvider }; | |||
}); | |||
@@ -20,6 +20,7 @@ exports[`should render correctly 1`] = ` | |||
location={ | |||
Object { | |||
"action": "PUSH", | |||
"hash": "", | |||
"key": "key", | |||
"pathname": "/path", | |||
"query": Object {}, |
@@ -25,7 +25,6 @@ it('should render correctly, and (un)register the link when (un)mounted', () => | |||
const link = { key: 'main', label: 'Skip to content' }; | |||
const addA11ySkipLink = jest.fn(); | |||
const removeA11ySkipLink = jest.fn(); | |||
const wrapper = mount( | |||
<A11ySkipTargetInner | |||
addA11ySkipLink={addA11ySkipLink} |
@@ -15,7 +15,7 @@ exports[`should render correctly, and (un)register the link when (un)mounted 1`] | |||
], | |||
"results": Array [ | |||
Object { | |||
"isThrow": false, | |||
"type": "return", | |||
"value": undefined, | |||
}, | |||
], |
@@ -27,7 +27,7 @@ exports[`should render correctly 1`] = ` | |||
], | |||
"results": Array [ | |||
Object { | |||
"isThrow": false, | |||
"type": "return", | |||
"value": undefined, | |||
}, | |||
], | |||
@@ -36,6 +36,7 @@ exports[`should render correctly 1`] = ` | |||
location={ | |||
Object { | |||
"action": "PUSH", | |||
"hash": "", | |||
"key": "key", | |||
"pathname": "/path", | |||
"query": Object {}, | |||
@@ -48,6 +49,7 @@ exports[`should render correctly 1`] = ` | |||
location={ | |||
Object { | |||
"action": "PUSH", | |||
"hash": "", | |||
"key": "key", | |||
"pathname": "/path", | |||
"query": Object {}, |
@@ -53,7 +53,7 @@ exports[`should render and create organization 2`] = ` | |||
], | |||
"results": Array [ | |||
Object { | |||
"isThrow": false, | |||
"type": "return", | |||
"value": undefined, | |||
}, | |||
], |
@@ -9,6 +9,7 @@ exports[`should render correctly for SonarCloud 1`] = ` | |||
location={ | |||
Object { | |||
"action": "PUSH", | |||
"hash": "", | |||
"key": "key", | |||
"pathname": "/path", | |||
"query": Object {}, | |||
@@ -44,6 +45,7 @@ exports[`should render correctly for SonarQube 1`] = ` | |||
location={ | |||
Object { | |||
"action": "PUSH", | |||
"hash": "", | |||
"key": "key", | |||
"pathname": "/path", | |||
"query": Object {}, |
@@ -623,7 +623,7 @@ exports[`should edit members 3`] = ` | |||
], | |||
"results": Array [ | |||
Object { | |||
"isThrow": false, | |||
"type": "return", | |||
"value": undefined, | |||
}, | |||
], |
@@ -107,7 +107,7 @@ exports[`creates new project 3`] = ` | |||
], | |||
"results": Array [ | |||
Object { | |||
"isThrow": false, | |||
"type": "return", | |||
"value": undefined, | |||
}, | |||
], | |||
@@ -261,7 +261,7 @@ exports[`deletes project 3`] = ` | |||
], | |||
"results": Array [ | |||
Object { | |||
"isThrow": false, | |||
"type": "return", | |||
"value": undefined, | |||
}, | |||
], |
@@ -38,7 +38,7 @@ const excludedUsers = ['admin']; | |||
describe('UsersSelectSearch', () => { | |||
it('should render correctly', () => { | |||
const onSearch = jest.fn(() => Promise.resolve(users)); | |||
const onSearch = jest.fn().mockResolvedValue({ users }); | |||
const wrapper = shallow( | |||
<UsersSelectSearch | |||
excludedUsers={excludedUsers} |
@@ -51,7 +51,7 @@ exports[`should be actionable 2`] = ` | |||
], | |||
"results": Array [ | |||
Object { | |||
"isThrow": false, | |||
"type": "return", | |||
"value": undefined, | |||
}, | |||
], |
@@ -19,7 +19,7 @@ exports[`should open the popup when the button is clicked 1`] = ` | |||
], | |||
"results": Array [ | |||
Object { | |||
"isThrow": false, | |||
"type": "return", | |||
"value": undefined, | |||
}, | |||
], |