Skip to content

Commit

Permalink
Merge pull request #672 from thebuilder/fix/deprecated-act
Browse files Browse the repository at this point in the history
fix: use act from `react` instead of deprecated one
  • Loading branch information
thebuilder committed Apr 29, 2024
2 parents 4ed69a5 + 87258aa commit 08b917a
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 08b917a

Please sign in to comment.