Skip to content

Commit

Permalink
Use import.meta.test
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <[email protected]>
  • Loading branch information
obulat committed Aug 8, 2024
1 parent 8792daa commit ca4d310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/focus-management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const focusableSelector = [
"textarea:not([disabled])",
]
.map(
import.meta.env?.NODE_ENV === "test"
import.meta.test
? // TODO: Remove this once JSDOM fixes the issue where an element that is
// "hidden" can be the document.activeElement, because this is not possible
// in real browsers.
Expand Down

0 comments on commit ca4d310

Please sign in to comment.