-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #392 from ar-io/develop
Release arweave.app integration to prod
- Loading branch information
Showing
50 changed files
with
4,549 additions
and
2,262 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const mock = { | ||
__esModule: true, | ||
|
||
...jest.requireActual('react-router-dom'), | ||
useLocation: jest.fn(() => ({ | ||
pathname: '/', | ||
search: '', | ||
hash: '', | ||
state: null, | ||
key: '5nvxpbdafa', | ||
})), | ||
useNavigate: jest.fn(() => jest.fn()), | ||
useSearchParams: () => [new URLSearchParams(), jest.fn()], | ||
}; | ||
|
||
// NOTE: `export default mock` does not work, use module.exports instead | ||
// see https://stackoverflow.com/questions/64037162/how-do-i-mock-react-router-dom-using-jest-from-a-mocks-directory | ||
module.exports = mock; |
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.