Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Test: the Muscles page reads its location now (#553)

Duarte Santos5d41dc527164
diff --git a/frontend/src/exercise-view.test.jsx b/frontend/src/exercise-view.test.jsx
index 4bd7e17f5..407b835ec 100644
--- a/frontend/src/exercise-view.test.jsx
+++ b/frontend/src/exercise-view.test.jsx
@@ -14,7 +14,7 @@ import { exercisePicker } from './sheets.jsx'
import Library from './views/Library.jsx'
import Muscles from './views/Muscles.jsx'
-vi.mock('react-router-dom', () => ({ useNavigate: () => () => {} }))
+vi.mock('react-router-dom', () => ({ useNavigate: () => () => {}, useLocation: () => ({ pathname: '/muscles', state: null }), useSearchParams: () => [new URLSearchParams()] }))
const mounted = []
const view = () => useStore.getState().S.exerciseView