* Update dependency @types/testing-library__jest-dom to v6

* remove package and fix types

* don't include setupTests in the build tsconfig

* exclude testUtils

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
pull/94953/head
renovate[bot] 1 year ago committed by GitHub
parent ea71201ddc
commit afeb0fc792
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      package.json
  2. 1
      packages/grafana-o11y-ds-frontend/package.json
  3. 8
      packages/grafana-o11y-ds-frontend/tsconfig.json
  4. 1
      packages/grafana-prometheus/package.json
  5. 10
      packages/grafana-prometheus/tsconfig.build.json
  6. 8
      packages/grafana-prometheus/tsconfig.json
  7. 2
      packages/grafana-runtime/tsconfig.build.json
  8. 6
      packages/grafana-runtime/tsconfig.json
  9. 1
      packages/grafana-sql/package.json
  10. 1
      packages/grafana-ui/package.json
  11. 3
      packages/grafana-ui/tsconfig.build.json
  12. 3
      packages/grafana-ui/tsconfig.json
  13. 9
      public/app/features/explore/Graph/useStructureRev.test.ts
  14. 1
      public/app/plugins/datasource/azuremonitor/package.json
  15. 1
      public/app/plugins/datasource/cloud-monitoring/package.json
  16. 1
      public/app/plugins/datasource/grafana-postgresql-datasource/package.json
  17. 1
      public/app/plugins/datasource/grafana-pyroscope-datasource/package.json
  18. 1
      public/app/plugins/datasource/grafana-testdata-datasource/package.json
  19. 1
      public/app/plugins/datasource/mssql/package.json
  20. 1
      public/app/plugins/datasource/mysql/package.json
  21. 40
      yarn.lock

@ -147,7 +147,6 @@
"@types/slate-react": "0.22.9", "@types/slate-react": "0.22.9",
"@types/swagger-ui-react": "4.18.3", "@types/swagger-ui-react": "4.18.3",
"@types/systemjs": "6.15.1", "@types/systemjs": "6.15.1",
"@types/testing-library__jest-dom": "5.14.9",
"@types/tinycolor2": "1.4.6", "@types/tinycolor2": "1.4.6",
"@types/uuid": "9.0.8", "@types/uuid": "9.0.8",
"@types/webpack-assets-manifest": "^5", "@types/webpack-assets-manifest": "^5",

@ -39,7 +39,6 @@
"@types/node": "20.16.11", "@types/node": "20.16.11",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/systemjs": "6.15.1", "@types/systemjs": "6.15.1",
"@types/testing-library__jest-dom": "5.14.9",
"jest": "^29.6.4", "jest": "^29.6.4",
"react": "18.2.0", "react": "18.2.0",
"ts-jest": "29.2.5", "ts-jest": "29.2.5",

@ -5,9 +5,15 @@
"declarationDir": "./compiled", "declarationDir": "./compiled",
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"isolatedModules": true, "isolatedModules": true,
"allowJs": true,
"rootDirs": ["."] "rootDirs": ["."]
}, },
"exclude": ["dist/**/*"], "exclude": ["dist/**/*"],
"extends": "@grafana/tsconfig", "extends": "@grafana/tsconfig",
"include": ["src/**/*.ts*", "../../public/app/types/*.d.ts", "../grafana-ui/src/types/*.d.ts"] "include": [
"../../public/test/setupTests.ts",
"../../public/app/types/*.d.ts",
"../grafana-ui/src/types/*.d.ts",
"src/**/*.ts*"
]
} }

@ -100,7 +100,6 @@
"@types/react-highlight-words": "0.20.0", "@types/react-highlight-words": "0.20.0",
"@types/react-window": "1.8.8", "@types/react-window": "1.8.8",
"@types/semver": "7.5.8", "@types/semver": "7.5.8",
"@types/testing-library__jest-dom": "5.14.9",
"@types/uuid": "9.0.8", "@types/uuid": "9.0.8",
"@typescript-eslint/eslint-plugin": "6.21.0", "@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0", "@typescript-eslint/parser": "6.21.0",

@ -1,4 +1,12 @@
{ {
"exclude": ["dist", "node_modules", "__mocks__", "test", "**/*.test.ts*"], "exclude": [
"dist",
"node_modules",
"__mocks__",
"test",
"**/*.test.ts*",
"src/querybuilder/testUtils.ts",
"../../public/test/setupTests.ts"
],
"extends": "./tsconfig.json" "extends": "./tsconfig.json"
} }

@ -5,9 +5,15 @@
"declarationDir": "./compiled", "declarationDir": "./compiled",
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"isolatedModules": true, "isolatedModules": true,
"allowJs": true,
"rootDirs": ["."] "rootDirs": ["."]
}, },
"exclude": ["dist/**/*"], "exclude": ["dist/**/*"],
"extends": "@grafana/tsconfig", "extends": "@grafana/tsconfig",
"include": ["src/**/*.ts*", "../../public/app/types/*.d.ts", "../grafana-ui/src/types/*.d.ts"] "include": [
"../../public/test/setupTests.ts",
"../../public/app/types/*.d.ts",
"../grafana-ui/src/types/*.d.ts",
"src/**/*.ts*"
]
} }

@ -1,4 +1,4 @@
{ {
"exclude": ["dist", "node_modules", "**/*.test.ts*"], "exclude": ["dist", "node_modules", "**/*.test.ts*", "../../public/test/setupTests.ts"],
"extends": "./tsconfig.json" "extends": "./tsconfig.json"
} }

@ -5,14 +5,16 @@
"declarationDir": "./compiled", "declarationDir": "./compiled",
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"isolatedModules": true, "isolatedModules": true,
"allowJs": true,
"rootDirs": ["."] "rootDirs": ["."]
}, },
"exclude": ["dist/**/*"], "exclude": ["dist/**/*"],
"extends": "@grafana/tsconfig", "extends": "@grafana/tsconfig",
"include": [ "include": [
"src/**/*.ts*", "../../public/test/setupTests.ts",
"../../public/app/types/jquery/*.ts", "../../public/app/types/jquery/*.ts",
"../../public/app/types/*.d.ts", "../../public/app/types/*.d.ts",
"../grafana-ui/src/types/*.d.ts" "../grafana-ui/src/types/*.d.ts",
"src/**/*.ts*"
] ]
} }

@ -47,7 +47,6 @@
"@types/react-dom": "18.2.25", "@types/react-dom": "18.2.25",
"@types/react-virtualized-auto-sizer": "1.0.4", "@types/react-virtualized-auto-sizer": "1.0.4",
"@types/systemjs": "6.15.1", "@types/systemjs": "6.15.1",
"@types/testing-library__jest-dom": "5.14.9",
"@types/uuid": "9.0.8", "@types/uuid": "9.0.8",
"jest": "^29.6.4", "jest": "^29.6.4",
"ts-jest": "29.2.5", "ts-jest": "29.2.5",

@ -158,7 +158,6 @@
"@types/slate": "0.47.11", "@types/slate": "0.47.11",
"@types/slate-plain-serializer": "0.7.5", "@types/slate-plain-serializer": "0.7.5",
"@types/slate-react": "0.22.9", "@types/slate-react": "0.22.9",
"@types/testing-library__jest-dom": "5.14.9",
"@types/tinycolor2": "1.4.6", "@types/tinycolor2": "1.4.6",
"@types/uuid": "9.0.8", "@types/uuid": "9.0.8",
"chance": "1.1.12", "chance": "1.1.12",

@ -12,7 +12,8 @@
"**/*.tmpl.ts", "**/*.tmpl.ts",
"dist", "dist",
"node_modules", "node_modules",
"src/utils/storybook" "src/utils/storybook",
"../../public/test/setupTests.ts"
], ],
"extends": "./tsconfig.json" "extends": "./tsconfig.json"
} }

@ -5,11 +5,12 @@
"declarationDir": "./compiled", "declarationDir": "./compiled",
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"isolatedModules": true, "isolatedModules": true,
"allowJs": true,
"rootDirs": ["."] "rootDirs": ["."]
}, },
"exclude": ["dist/**/*"], "exclude": ["dist/**/*"],
"extends": "@grafana/tsconfig", "extends": "@grafana/tsconfig",
"include": ["src/**/*.ts*", "../../public/app/types/*.d.ts"], "include": ["../../public/test/setupTests.ts", "../../public/app/types/*.d.ts", "src/**/*.ts*"],
// override for storybook which uses ts-node to compile main.ts / preview.ts files. // override for storybook which uses ts-node to compile main.ts / preview.ts files.
"ts-node": { "ts-node": {
"compilerOptions": { "compilerOptions": {

@ -1,3 +1,12 @@
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace jest {
interface Matchers<R> {
toHaveIncremented(): CustomMatcherResult;
}
}
}
import { renderHook } from '@testing-library/react-hooks'; import { renderHook } from '@testing-library/react-hooks';
import { DataFrame, FieldType, toDataFrame } from '@grafana/data'; import { DataFrame, FieldType, toDataFrame } from '@grafana/data';

@ -36,7 +36,6 @@
"@types/prismjs": "1.26.4", "@types/prismjs": "1.26.4",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/react-dom": "18.2.25", "@types/react-dom": "18.2.25",
"@types/testing-library__jest-dom": "5.14.9",
"react-select-event": "5.5.1", "react-select-event": "5.5.1",
"ts-node": "10.9.2", "ts-node": "10.9.2",
"typescript": "5.5.4", "typescript": "5.5.4",

@ -39,7 +39,6 @@
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/react-dom": "18.2.25", "@types/react-dom": "18.2.25",
"@types/react-test-renderer": "18.3.0", "@types/react-test-renderer": "18.3.0",
"@types/testing-library__jest-dom": "5.14.9",
"react-select-event": "5.5.1", "react-select-event": "5.5.1",
"react-test-renderer": "18.2.0", "react-test-renderer": "18.2.0",
"ts-node": "10.9.2", "ts-node": "10.9.2",

@ -25,7 +25,6 @@
"@types/lodash": "4.17.10", "@types/lodash": "4.17.10",
"@types/node": "20.16.11", "@types/node": "20.16.11",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/testing-library__jest-dom": "5.14.9",
"ts-node": "10.9.2", "ts-node": "10.9.2",
"typescript": "5.5.4", "typescript": "5.5.4",
"webpack": "5.95.0" "webpack": "5.95.0"

@ -31,7 +31,6 @@
"@types/prismjs": "1.26.4", "@types/prismjs": "1.26.4",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/react-dom": "18.2.25", "@types/react-dom": "18.2.25",
"@types/testing-library__jest-dom": "5.14.9",
"css-loader": "7.1.2", "css-loader": "7.1.2",
"jest": "29.7.0", "jest": "29.7.0",
"style-loader": "4.0.0", "style-loader": "4.0.0",

@ -33,7 +33,6 @@
"@types/node": "20.16.11", "@types/node": "20.16.11",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/react-dom": "18.2.25", "@types/react-dom": "18.2.25",
"@types/testing-library__jest-dom": "5.14.9",
"@types/uuid": "9.0.8", "@types/uuid": "9.0.8",
"ts-node": "10.9.2", "ts-node": "10.9.2",
"typescript": "5.5.4", "typescript": "5.5.4",

@ -25,7 +25,6 @@
"@types/lodash": "4.17.10", "@types/lodash": "4.17.10",
"@types/node": "20.16.11", "@types/node": "20.16.11",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/testing-library__jest-dom": "5.14.9",
"ts-node": "10.9.2", "ts-node": "10.9.2",
"typescript": "5.5.4", "typescript": "5.5.4",
"webpack": "5.95.0" "webpack": "5.95.0"

@ -25,7 +25,6 @@
"@types/lodash": "4.17.10", "@types/lodash": "4.17.10",
"@types/node": "20.16.11", "@types/node": "20.16.11",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/testing-library__jest-dom": "5.14.9",
"ts-node": "10.9.2", "ts-node": "10.9.2",
"typescript": "5.5.4", "typescript": "5.5.4",
"webpack": "5.95.0" "webpack": "5.95.0"

@ -3111,7 +3111,6 @@ __metadata:
"@types/prismjs": "npm:1.26.4" "@types/prismjs": "npm:1.26.4"
"@types/react": "npm:18.3.3" "@types/react": "npm:18.3.3"
"@types/react-dom": "npm:18.2.25" "@types/react-dom": "npm:18.2.25"
"@types/testing-library__jest-dom": "npm:5.14.9"
fast-deep-equal: "npm:^3.1.3" fast-deep-equal: "npm:^3.1.3"
i18next: "npm:^23.0.0" i18next: "npm:^23.0.0"
immer: "npm:10.1.1" immer: "npm:10.1.1"
@ -3152,7 +3151,6 @@ __metadata:
"@types/lodash": "npm:4.17.10" "@types/lodash": "npm:4.17.10"
"@types/node": "npm:20.16.11" "@types/node": "npm:20.16.11"
"@types/react": "npm:18.3.3" "@types/react": "npm:18.3.3"
"@types/testing-library__jest-dom": "npm:5.14.9"
lodash: "npm:4.17.21" lodash: "npm:4.17.21"
react: "npm:18.2.0" react: "npm:18.2.0"
rxjs: "npm:7.8.1" rxjs: "npm:7.8.1"
@ -3185,7 +3183,6 @@ __metadata:
"@types/prismjs": "npm:1.26.4" "@types/prismjs": "npm:1.26.4"
"@types/react": "npm:18.3.3" "@types/react": "npm:18.3.3"
"@types/react-dom": "npm:18.2.25" "@types/react-dom": "npm:18.2.25"
"@types/testing-library__jest-dom": "npm:5.14.9"
css-loader: "npm:7.1.2" css-loader: "npm:7.1.2"
fast-deep-equal: "npm:^3.1.3" fast-deep-equal: "npm:^3.1.3"
jest: "npm:29.7.0" jest: "npm:29.7.0"
@ -3227,7 +3224,6 @@ __metadata:
"@types/node": "npm:20.16.11" "@types/node": "npm:20.16.11"
"@types/react": "npm:18.3.3" "@types/react": "npm:18.3.3"
"@types/react-dom": "npm:18.2.25" "@types/react-dom": "npm:18.2.25"
"@types/testing-library__jest-dom": "npm:5.14.9"
"@types/uuid": "npm:9.0.8" "@types/uuid": "npm:9.0.8"
d3-random: "npm:^3.0.1" d3-random: "npm:^3.0.1"
lodash: "npm:4.17.21" lodash: "npm:4.17.21"
@ -3308,7 +3304,6 @@ __metadata:
"@types/lodash": "npm:4.17.10" "@types/lodash": "npm:4.17.10"
"@types/node": "npm:20.16.11" "@types/node": "npm:20.16.11"
"@types/react": "npm:18.3.3" "@types/react": "npm:18.3.3"
"@types/testing-library__jest-dom": "npm:5.14.9"
lodash: "npm:4.17.21" lodash: "npm:4.17.21"
react: "npm:18.2.0" react: "npm:18.2.0"
rxjs: "npm:7.8.1" rxjs: "npm:7.8.1"
@ -3340,7 +3335,6 @@ __metadata:
"@types/lodash": "npm:4.17.10" "@types/lodash": "npm:4.17.10"
"@types/node": "npm:20.16.11" "@types/node": "npm:20.16.11"
"@types/react": "npm:18.3.3" "@types/react": "npm:18.3.3"
"@types/testing-library__jest-dom": "npm:5.14.9"
lodash: "npm:4.17.21" lodash: "npm:4.17.21"
react: "npm:18.2.0" react: "npm:18.2.0"
rxjs: "npm:7.8.1" rxjs: "npm:7.8.1"
@ -3409,7 +3403,6 @@ __metadata:
"@types/react": "npm:18.3.3" "@types/react": "npm:18.3.3"
"@types/react-dom": "npm:18.2.25" "@types/react-dom": "npm:18.2.25"
"@types/react-test-renderer": "npm:18.3.0" "@types/react-test-renderer": "npm:18.3.0"
"@types/testing-library__jest-dom": "npm:5.14.9"
debounce-promise: "npm:3.1.2" debounce-promise: "npm:3.1.2"
fast-deep-equal: "npm:^3.1.3" fast-deep-equal: "npm:^3.1.3"
i18next: "npm:^23.0.0" i18next: "npm:^23.0.0"
@ -3860,7 +3853,6 @@ __metadata:
"@types/node": "npm:20.16.11" "@types/node": "npm:20.16.11"
"@types/react": "npm:18.3.3" "@types/react": "npm:18.3.3"
"@types/systemjs": "npm:6.15.1" "@types/systemjs": "npm:6.15.1"
"@types/testing-library__jest-dom": "npm:5.14.9"
jest: "npm:^29.6.4" jest: "npm:^29.6.4"
react: "npm:18.2.0" react: "npm:18.2.0"
react-select: "npm:5.8.1" react-select: "npm:5.8.1"
@ -3953,7 +3945,6 @@ __metadata:
"@types/react-highlight-words": "npm:0.20.0" "@types/react-highlight-words": "npm:0.20.0"
"@types/react-window": "npm:1.8.8" "@types/react-window": "npm:1.8.8"
"@types/semver": "npm:7.5.8" "@types/semver": "npm:7.5.8"
"@types/testing-library__jest-dom": "npm:5.14.9"
"@types/uuid": "npm:9.0.8" "@types/uuid": "npm:9.0.8"
"@typescript-eslint/eslint-plugin": "npm:6.21.0" "@typescript-eslint/eslint-plugin": "npm:6.21.0"
"@typescript-eslint/parser": "npm:6.21.0" "@typescript-eslint/parser": "npm:6.21.0"
@ -4180,7 +4171,6 @@ __metadata:
"@types/react-dom": "npm:18.2.25" "@types/react-dom": "npm:18.2.25"
"@types/react-virtualized-auto-sizer": "npm:1.0.4" "@types/react-virtualized-auto-sizer": "npm:1.0.4"
"@types/systemjs": "npm:6.15.1" "@types/systemjs": "npm:6.15.1"
"@types/testing-library__jest-dom": "npm:5.14.9"
"@types/uuid": "npm:9.0.8" "@types/uuid": "npm:9.0.8"
immutable: "npm:4.3.7" immutable: "npm:4.3.7"
jest: "npm:^29.6.4" jest: "npm:^29.6.4"
@ -4276,7 +4266,6 @@ __metadata:
"@types/slate": "npm:0.47.11" "@types/slate": "npm:0.47.11"
"@types/slate-plain-serializer": "npm:0.7.5" "@types/slate-plain-serializer": "npm:0.7.5"
"@types/slate-react": "npm:0.22.9" "@types/slate-react": "npm:0.22.9"
"@types/testing-library__jest-dom": "npm:5.14.9"
"@types/tinycolor2": "npm:1.4.6" "@types/tinycolor2": "npm:1.4.6"
"@types/uuid": "npm:9.0.8" "@types/uuid": "npm:9.0.8"
ansicolor: "npm:1.1.100" ansicolor: "npm:1.1.100"
@ -9337,7 +9326,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@testing-library/jest-dom@npm:6.5.0, @testing-library/jest-dom@npm:^6.1.2": "@testing-library/jest-dom@npm:6.5.0":
version: 6.5.0 version: 6.5.0
resolution: "@testing-library/jest-dom@npm:6.5.0" resolution: "@testing-library/jest-dom@npm:6.5.0"
dependencies: dependencies:
@ -9352,6 +9341,21 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@testing-library/jest-dom@npm:^6.1.2":
version: 6.6.1
resolution: "@testing-library/jest-dom@npm:6.6.1"
dependencies:
"@adobe/css-tools": "npm:^4.4.0"
aria-query: "npm:^5.0.0"
chalk: "npm:^3.0.0"
css.escape: "npm:^1.5.1"
dom-accessibility-api: "npm:^0.6.3"
lodash: "npm:^4.17.21"
redent: "npm:^3.0.0"
checksum: 10/006357d7547cc50624564a1b0e9986d0f0252365a6e5ac1c7c989032159c47226adfbd9a9ac17eef236738e9597541d344176176b5c3ed0e06e8f4b33387e135
languageName: node
linkType: hard
"@testing-library/react-hooks@npm:^8.0.1": "@testing-library/react-hooks@npm:^8.0.1":
version: 8.0.1 version: 8.0.1
resolution: "@testing-library/react-hooks@npm:8.0.1" resolution: "@testing-library/react-hooks@npm:8.0.1"
@ -10232,7 +10236,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/jest@npm:*, @types/jest@npm:29.5.13, @types/jest@npm:^29.5.4": "@types/jest@npm:29.5.13, @types/jest@npm:^29.5.4":
version: 29.5.13 version: 29.5.13
resolution: "@types/jest@npm:29.5.13" resolution: "@types/jest@npm:29.5.13"
dependencies: dependencies:
@ -10867,15 +10871,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/testing-library__jest-dom@npm:5.14.9":
version: 5.14.9
resolution: "@types/testing-library__jest-dom@npm:5.14.9"
dependencies:
"@types/jest": "npm:*"
checksum: 10/e257de95a4a9385cc09ae4ca3396d23ad4b5cfb8e021a1ca3454c424c34636075f6fe151b2f881f79bf9d497aa04fbfae62449b135f293e8d2d614fa899898a8
languageName: node
linkType: hard
"@types/tinycolor2@npm:1.4.6": "@types/tinycolor2@npm:1.4.6":
version: 1.4.6 version: 1.4.6
resolution: "@types/tinycolor2@npm:1.4.6" resolution: "@types/tinycolor2@npm:1.4.6"
@ -19147,7 +19142,6 @@ __metadata:
"@types/slate-react": "npm:0.22.9" "@types/slate-react": "npm:0.22.9"
"@types/swagger-ui-react": "npm:4.18.3" "@types/swagger-ui-react": "npm:4.18.3"
"@types/systemjs": "npm:6.15.1" "@types/systemjs": "npm:6.15.1"
"@types/testing-library__jest-dom": "npm:5.14.9"
"@types/tinycolor2": "npm:1.4.6" "@types/tinycolor2": "npm:1.4.6"
"@types/uuid": "npm:9.0.8" "@types/uuid": "npm:9.0.8"
"@types/webpack-assets-manifest": "npm:^5" "@types/webpack-assets-manifest": "npm:^5"

Loading…
Cancel
Save