Skip to content

Commit

Permalink
upgrade of typescript and tslint and jest (grafana#13223)
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelo authored Sep 11, 2018
1 parent 2825027 commit 1ce9001
Show file tree
Hide file tree
Showing 7 changed files with 338 additions and 423 deletions.
7 changes: 1 addition & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@

module.exports = {
verbose: false,
"globals": {
"ts-jest": {
"tsConfigFile": "tsconfig.json"
}
},
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
"^.+\\.(ts|tsx)$": "ts-jest"
},
"moduleDirectories": ["node_modules", "public"],
"roots": [
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"expect.js": "~0.2.0",
"expose-loader": "^0.7.3",
"file-loader": "^1.1.11",
"fork-ts-checker-webpack-plugin": "^0.4.2",
"fork-ts-checker-webpack-plugin": "^0.4.9",
"gaze": "^1.1.2",
"glob": "~7.0.0",
"grunt": "1.0.1",
Expand All @@ -56,7 +56,7 @@
"html-webpack-harddisk-plugin": "^0.2.0",
"html-webpack-plugin": "^3.2.0",
"husky": "^0.14.3",
"jest": "^22.0.4",
"jest": "^23.6.0",
"lint-staged": "^6.0.0",
"load-grunt-tasks": "3.5.2",
"mini-css-extract-plugin": "^0.4.0",
Expand All @@ -80,12 +80,12 @@
"style-loader": "^0.21.0",
"systemjs": "0.20.19",
"systemjs-plugin-css": "^0.1.36",
"ts-jest": "^22.4.6",
"ts-loader": "^4.3.0",
"ts-jest": "^23.1.4",
"ts-loader": "^5.1.0",
"tslib": "^1.9.3",
"tslint": "^5.8.0",
"tslint-loader": "^3.5.3",
"typescript": "^2.6.2",
"typescript": "^3.0.3",
"uglifyjs-webpack-plugin": "^1.2.7",
"webpack": "^4.8.0",
"webpack-bundle-analyzer": "^2.9.0",
Expand Down Expand Up @@ -133,6 +133,7 @@
"angular-native-dragdrop": "1.2.2",
"angular-route": "1.6.6",
"angular-sanitize": "1.6.6",
"babel-jest": "^23.6.0",
"babel-polyfill": "^6.26.0",
"baron": "^3.0.3",
"brace": "^0.10.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ exports[`TeamPicker renders correctly 1`] = `
>
<div
className="Select gf-form-input gf-form-input--form-dropdown is-clearable is-loading is-searchable Select--single"
style={undefined}
>
<div
className="Select-control"
Expand All @@ -15,7 +14,6 @@ exports[`TeamPicker renders correctly 1`] = `
onTouchEnd={[Function]}
onTouchMove={[Function]}
onTouchStart={[Function]}
style={undefined}
>
<span
className="Select-multi-value-wrapper"
Expand All @@ -36,14 +34,9 @@ exports[`TeamPicker renders correctly 1`] = `
>
<input
aria-activedescendant="react-select-2--value"
aria-describedby={undefined}
aria-expanded="false"
aria-haspopup="false"
aria-label={undefined}
aria-labelledby={undefined}
aria-owns=""
className={undefined}
id={undefined}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
Expand All @@ -55,7 +48,6 @@ exports[`TeamPicker renders correctly 1`] = `
"width": "5px",
}
}
tabIndex={undefined}
value=""
/>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ exports[`UserPicker renders correctly 1`] = `
>
<div
className="Select gf-form-input gf-form-input--form-dropdown is-clearable is-loading is-searchable Select--single"
style={undefined}
>
<div
className="Select-control"
Expand All @@ -15,7 +14,6 @@ exports[`UserPicker renders correctly 1`] = `
onTouchEnd={[Function]}
onTouchMove={[Function]}
onTouchStart={[Function]}
style={undefined}
>
<span
className="Select-multi-value-wrapper"
Expand All @@ -36,14 +34,9 @@ exports[`UserPicker renders correctly 1`] = `
>
<input
aria-activedescendant="react-select-2--value"
aria-describedby={undefined}
aria-expanded="false"
aria-haspopup="false"
aria-label={undefined}
aria-labelledby={undefined}
aria-owns=""
className={undefined}
id={undefined}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
Expand All @@ -55,7 +48,6 @@ exports[`UserPicker renders correctly 1`] = `
"width": "5px",
}
}
tabIndex={undefined}
value=""
/>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`Render should render component 1`] = `
>
<a
className="sidemenu-link"
href="login?redirect=blank"
href="login?redirect=%2F"
target="_self"
>
<span
Expand All @@ -18,7 +18,7 @@ exports[`Render should render component 1`] = `
</span>
</a>
<a
href="login?redirect=blank"
href="login?redirect=%2F"
target="_self"
>
<ul
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ exports[`ServerStats Should render table with stats 1`] = `
<a
className="gf-tabs-link active"
href="Admin"
target={undefined}
>
<i
className="icon"
Expand Down
Loading

0 comments on commit 1ce9001

Please sign in to comment.