Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TanStack/router
/ useNavigate.test.tsx
File
useNavigate.test.tsx
packages/react-router/tests/useNavigate.test.tsx:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import React, { act } from
'react'
2
import
'@testing-library/jest-dom/vitest'
3
import { afterEach, beforeEach, describe, expect, test, vi } from
'vitest'
4
import {
Callers
nothing calls this directly
Calls
15
createBrowserHistory
Function · 0.90
createRootRoute
Function · 0.90
createRoute
Function · 0.90
createRouter
Function · 0.90
render
Function · 0.90
createRouteMask
Function · 0.90
useNavigate
Function · 0.90
default
Method · 0.80
optional
Method · 0.80
runTest
Function · 0.70
setupRouter
Function · 0.70
destroy
Method · 0.65
Tested by
no test coverage detected