Skip to content

Commit 87258aa

Browse files
committed
fix: use act from react instead of deprecated one
https://react.dev/warnings/react-dom-test-utils
1 parent 4ed69a5 commit 87258aa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
"complexity": {
2525
"noForEach": "off"
2626
},
27+
"style": {
28+
"noVar": "off"
29+
},
2730
"a11y": {
2831
"noSvgWithoutTitle": "off"
2932
}

src/test-utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { act } from "react-dom/test-utils";
1+
import { act } from "react";
22
declare global {
3-
// biome-ignore lint/style/noVar: Needs to be `var`, not `let` or `const`, for typing to work
43
var IS_REACT_ACT_ENVIRONMENT: boolean;
54
}
65
type Item = {

0 commit comments

Comments
 (0)