Skip to content

Commit 48093c6

Browse files
Merge pull request #5892 from Hacker0x01/dependabot/npm_and_yarn/types/node-24.6.0
chore(deps-dev): bump @types/node from 22.15.30 to 24.6.0
2 parents 09d8e93 + a1fc3c6 commit 48093c6

File tree

4 files changed

+25
-21
lines changed

4 files changed

+25
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@types/eslint": "^9.6.1",
5757
"@types/jest": "^30.0.0",
5858
"@types/jest-axe": "^3.5.9",
59-
"@types/node": "22.15.30",
59+
"@types/node": "24.6.0",
6060
"@types/react": "^19.1.10",
6161
"@types/react-dom": "^19.1.7",
6262
"@typescript-eslint/eslint-plugin": "^8.22.0",

src/test/index.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ expect.extend(toHaveNoViolations);
77
const originalError = console.error;
88
beforeAll(() => {
99
console.error = (...args) => {
10-
// Check if any of the arguments contains the floating-ui act warning
11-
const hasFloatingActWarning = args.some(
12-
(arg) =>
13-
typeof arg === "string" &&
14-
arg.includes(
15-
"An update to withFloating(PopperComponent) inside a test was not wrapped in act",
16-
),
17-
);
10+
// Check the first argument (the error message)
11+
const firstArg = args[0];
12+
const firstArgStr =
13+
typeof firstArg === "string"
14+
? firstArg
15+
: firstArg instanceof Error
16+
? firstArg.message
17+
: String(firstArg);
1818

19-
if (hasFloatingActWarning) {
19+
// Suppress floating-ui act warnings
20+
if (
21+
firstArgStr.includes("An update to withFloating(PopperComponent)") &&
22+
firstArgStr.includes("inside a test was not wrapped in act")
23+
) {
2024
return;
2125
}
2226

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"noUncheckedIndexedAccess": true,
1010
"module": "esnext",
1111
"target": "ES2015",
12-
"lib": ["ES2021", "dom"],
12+
"lib": ["ES2022", "dom"],
1313
"sourceMap": true,
1414
"jsx": "react",
1515
"moduleResolution": "node",

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3442,12 +3442,12 @@ __metadata:
34423442
languageName: node
34433443
linkType: hard
34443444

3445-
"@types/node@npm:22.15.30":
3446-
version: 22.15.30
3447-
resolution: "@types/node@npm:22.15.30"
3445+
"@types/node@npm:24.6.0":
3446+
version: 24.6.0
3447+
resolution: "@types/node@npm:24.6.0"
34483448
dependencies:
3449-
undici-types: "npm:~6.21.0"
3450-
checksum: 10c0/ca330ac0e7fd502686d6df115fcc606aba46fd334220f749bbba2f639accdadcb23f7900603ceccdc8240be736739cad5c0b87c0fa92c9255a4dff245f07d664
3449+
undici-types: "npm:~7.13.0"
3450+
checksum: 10c0/06f1aa1b5d9a8c26285b34c25aee554f31a1dc0b39627cc14e7c1c6967e75a47ab9f409eee14796cbcc004ae4059fa884cb6092ecfb368c9656d16686d7cc9d8
34513451
languageName: node
34523452
linkType: hard
34533453

@@ -9480,7 +9480,7 @@ __metadata:
94809480
"@types/eslint": "npm:^9.6.1"
94819481
"@types/jest": "npm:^30.0.0"
94829482
"@types/jest-axe": "npm:^3.5.9"
9483-
"@types/node": "npm:22.15.30"
9483+
"@types/node": "npm:24.6.0"
94849484
"@types/react": "npm:^19.1.10"
94859485
"@types/react-dom": "npm:^19.1.7"
94869486
"@typescript-eslint/eslint-plugin": "npm:^8.22.0"
@@ -11160,10 +11160,10 @@ __metadata:
1116011160
languageName: node
1116111161
linkType: hard
1116211162

11163-
"undici-types@npm:~6.21.0":
11164-
version: 6.21.0
11165-
resolution: "undici-types@npm:6.21.0"
11166-
checksum: 10c0/c01ed51829b10aa72fc3ce64b747f8e74ae9b60eafa19a7b46ef624403508a54c526ffab06a14a26b3120d055e1104d7abe7c9017e83ced038ea5cf52f8d5e04
11163+
"undici-types@npm:~7.13.0":
11164+
version: 7.13.0
11165+
resolution: "undici-types@npm:7.13.0"
11166+
checksum: 10c0/44bbb0935425291351bfd8039571f017295b5d6dc5727045d0a4fea8c6ffe73a6703b48ce010f9cb539b9041a75b463f8cfe1e7309cab7486452505fb0d66151
1116711167
languageName: node
1116811168
linkType: hard
1116911169

0 commit comments

Comments
 (0)