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 phone durability tests get a longer limit, each loads the store afresh

Duarte Santos678597fcc281
diff --git a/frontend/src/store/useStore.mobile-durable.test.jsx b/frontend/src/store/useStore.mobile-durable.test.jsx
index 69f164c24..a18a6dadd 100644
--- a/frontend/src/store/useStore.mobile-durable.test.jsx
+++ b/frontend/src/store/useStore.mobile-durable.test.jsx
@@ -64,7 +64,8 @@ afterEach(async () => {
localStorage.clear()
})
-describe('a phone with no server', () => {
+// Each test loads the store afresh: slow on a busy machine, so a longer limit than the default.
+describe('a phone with no server', { timeout: 30000 }, () => {
beforeEach(() => { h.files.clear() })
it('a ticked set is in the file at once, not after the usual wait', async () => {