-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bump to React 18, user-event v14, remove reach/auto-id (#1497)
* feat: bump to react 18 * feat: bump userEvent to v14 * refactor: use react useid over reach auto id * refactor: fix lint and types * test(filterspopover): temporarily disable chromatic * test: await story play userevents * refactor(jest): don't throw error on console error
- Loading branch information
Showing
65 changed files
with
1,100 additions
and
1,102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1 @@ | ||
import '@testing-library/jest-dom'; | ||
import { format } from 'util'; | ||
|
||
/** | ||
* Ensure `console.error` calls throw an error in tests | ||
*/ | ||
function throwOnConsoleError() { | ||
console.error = function (...args: unknown[]) { | ||
const [firstArg, ...restArgs] = args; | ||
|
||
if (firstArg instanceof Error) { | ||
throw firstArg; | ||
} | ||
|
||
throw new Error(format(firstArg, ...restArgs)); | ||
}; | ||
} | ||
|
||
throwOnConsoleError(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.