Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: bump up @testing-library/react version to v15 (#6508)

renovate5cd4c051fd2a
diff --git a/package.json b/package.json
index bf71ee8cf3..4831eea4b8 100644
--- a/package.json
+++ b/package.json
@@ -64,7 +64,7 @@
"@nx/vite": "18.1.2",
"@playwright/test": "^1.41.2",
"@taplo/cli": "^0.7.0",
- "@testing-library/react": "^14.2.1",
+ "@testing-library/react": "^15.0.0",
"@toeverything/infra": "workspace:*",
"@types/affine__env": "workspace:*",
"@types/eslint": "^8.56.3",
diff --git a/packages/common/infra/package.json b/packages/common/infra/package.json
index 0a34c752ed..5e1c50fe20 100644
--- a/packages/common/infra/package.json
+++ b/packages/common/infra/package.json
@@ -30,7 +30,7 @@
"@affine/templates": "workspace:*",
"@blocksuite/block-std": "0.14.0-canary-202404090831-25c5310",
"@blocksuite/presets": "0.14.0-canary-202404090831-25c5310",
- "@testing-library/react": "^14.2.1",
+ "@testing-library/react": "^15.0.0",
"async-call-rpc": "^6.4.0",
"react": "^18.2.0",
"rxjs": "^7.8.1",
diff --git a/packages/frontend/component/package.json b/packages/frontend/component/package.json
index de57fdfe58..d4853a126e 100644
--- a/packages/frontend/component/package.json
+++ b/packages/frontend/component/package.json
@@ -94,7 +94,7 @@
"@storybook/react-vite": "^7.6.17",
"@storybook/test-runner": "^0.17.0",
"@storybook/testing-library": "^0.2.2",
- "@testing-library/react": "^14.2.1",
+ "@testing-library/react": "^15.0.0",
"@types/bytes": "^3.1.4",
"@types/react": "^18.2.58",
"@types/react-dnd": "^3.0.2",
diff --git a/packages/frontend/core/package.json b/packages/frontend/core/package.json
index 12a43230e6..7a1a936398 100644
--- a/packages/frontend/core/package.json
+++ b/packages/frontend/core/package.json
@@ -92,7 +92,7 @@
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@sentry/webpack-plugin": "^2.14.2",
"@swc/core": "^1.4.8",
- "@testing-library/react": "^14.2.1",
+ "@testing-library/react": "^15.0.0",
"@types/animejs": "^3.1.12",
"@types/bytes": "^3.1.4",
"@types/image-blob-reduce": "^4.1.4",
diff --git a/yarn.lock b/yarn.lock
index 115164d1f8..024c2e523a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -264,7 +264,7 @@ __metadata:
"@storybook/react-vite": "npm:^7.6.17"
"@storybook/test-runner": "npm:^0.17.0"
"@storybook/testing-library": "npm:^0.2.2"
- "@testing-library/react": "npm:^14.2.1"
+ "@testing-library/react": "npm:^15.0.0"
"@toeverything/theme": "npm:^0.7.29"
"@types/bytes": "npm:^3.1.4"
"@types/react": "npm:^18.2.58"
@@ -358,7 +358,7 @@ __metadata:
"@sentry/react": "npm:^7.108.0"
"@sentry/webpack-plugin": "npm:^2.14.2"
"@swc/core": "npm:^1.4.8"
- "@testing-library/react": "npm:^14.2.1"
+ "@testing-library/react": "npm:^15.0.0"
"@toeverything/theme": "npm:^0.7.29"
"@types/animejs": "npm:^3.1.12"
"@types/bytes": "npm:^3.1.4"
@@ -575,7 +575,7 @@ __metadata:
"@nx/vite": "npm:18.1.2"
"@playwright/test": "npm:^1.41.2"
"@taplo/cli": "npm:^0.7.0"
- "@testing-library/react": "npm:^14.2.1"
+ "@testing-library/react": "npm:^15.0.0"
"@toeverything/infra": "workspace:*"
"@types/affine__env": "workspace:*"
"@types/eslint": "npm:^8.56.3"
@@ -13906,6 +13906,22 @@ __metadata:
languageName: node
linkType: hard
+"@testing-library/dom@npm:^10.0.0":
+ version: 10.0.0
+ resolution: "@testing-library/dom@npm:10.0.0"
+ dependencies:
+ "@babel/code-frame": "npm:^7.10.4"
+ "@babel/runtime": "npm:^7.12.5"
+ "@types/aria-query": "npm:^5.0.1"
+ aria-query: "npm:5.3.0"
+ chalk: "npm:^4.1.0"
+ dom-accessibility-api: "npm:^0.5.9"
+ lz-string: "npm:^1.5.0"
+ pretty-format: "npm:^27.0.2"
+ checksum: 10/d0d0ffffed0dae705c5c615d8779348743e66704b2da1ce3e2df7c2d038cde55d7f11819e9b50ca53d3ec815050fab928c8845316c2f713141b9fb8ad50921f6
+ languageName: node
+ linkType: hard
+
"@testing-library/dom@npm:^9.0.0":
version: 9.3.3
resolution: "@testing-library/dom@npm:9.3.3"
@@ -13952,17 +13968,17 @@ __metadata:
languageName: node
linkType: hard
-"@testing-library/react@npm:^14.2.1":
- version: 14.2.1
- resolution: "@testing-library/react@npm:14.2.1"
+"@testing-library/react@npm:^15.0.0":
+ version: 15.0.0
+ resolution: "@testing-library/react@npm:15.0.0"
dependencies:
"@babel/runtime": "npm:^7.12.5"
- "@testing-library/dom": "npm:^9.0.0"
+ "@testing-library/dom": "npm:^10.0.0"
"@types/react-dom": "npm:^18.0.0"
peerDependencies:
react: ^18.0.0
react-dom: ^18.0.0
- checksum: 10/e02b2f32ae79665a79fc4d8ee053fd3832bfcd4753aa1dba05cdece1a9f59c72a0fae91e0a9387597dcb686d631a722729f2878e38dc95e6f23b291ad8d09b6c
+ checksum: 10/78217cb67c2e0fb72dc4f51d19a25fbc290f298f3ca73a517ceda67a352741405740e0daa9ba5d93e4496a8f51f1465774e84d2a828863133b539304e0759dad
languageName: node
linkType: hard
@@ -13989,7 +14005,7 @@ __metadata:
"@blocksuite/presets": "npm:0.14.0-canary-202404090831-25c5310"
"@blocksuite/store": "npm:0.14.0-canary-202404090831-25c5310"
"@datastructures-js/binary-search-tree": "npm:^5.3.2"
- "@testing-library/react": "npm:^14.2.1"
+ "@testing-library/react": "npm:^15.0.0"
async-call-rpc: "npm:^6.4.0"
foxact: "npm:^0.2.31"
jotai: "npm:^2.6.5"
@@ -16654,7 +16670,7 @@ __metadata:
languageName: node
linkType: hard
-"aria-query@npm:^5.0.0":
+"aria-query@npm:5.3.0, aria-query@npm:^5.0.0":
version: 5.3.0
resolution: "aria-query@npm:5.3.0"
dependencies: