Skip to content

Commit

Permalink
fix: use act from react instead of deprecated one
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder committed Apr 29, 2024
1 parent 4ed69a5 commit 87258aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"complexity": {
"noForEach": "off"
},
"style": {
"noVar": "off"
},
"a11y": {
"noSvgWithoutTitle": "off"
}
Expand Down
3 changes: 1 addition & 2 deletions src/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { act } from "react-dom/test-utils";
import { act } from "react";
declare global {
// biome-ignore lint/style/noVar: Needs to be `var`, not `let` or `const`, for typing to work
var IS_REACT_ACT_ENVIRONMENT: boolean;
}
type Item = {
Expand Down

0 comments on commit 87258aa

Please sign in to comment.