Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: await the touchpoint re-render and stop pinning TZ in the review suite

[._.]/ Adam Eivy4ac83976bba6
diff --git a/client/src/components/calendar/ReviewTab.test.jsx b/client/src/components/calendar/ReviewTab.test.jsx
index 638302b31d..1ab1b17db3 100644
--- a/client/src/components/calendar/ReviewTab.test.jsx
+++ b/client/src/components/calendar/ReviewTab.test.jsx
@@ -13,9 +13,13 @@ import * as api from '../../services/api';
import ReviewTab from './ReviewTab';
describe('ReviewTab', () => {
+ // Restore the ambient zone rather than pinning UTC: vitest reuses a worker
+ // across files, so clobbering TZ here would follow the next suite in.
+ const ambientTZ = process.env.TZ;
afterEach(() => {
vi.useRealTimers();
- process.env.TZ = 'UTC';
+ if (ambientTZ === undefined) delete process.env.TZ;
+ else process.env.TZ = ambientTZ;
});
it('defaults to the local calendar date', async () => {
diff --git a/client/src/pages/Tribe.test.jsx b/client/src/pages/Tribe.test.jsx
index 17fe8800be..987c1b54f1 100644
--- a/client/src/pages/Tribe.test.jsx
+++ b/client/src/pages/Tribe.test.jsx
@@ -161,6 +161,6 @@ describe('Tribe care filter', () => {
expect.objectContaining({ localDate: '2026-01-01' }),
{ silent: true },
));
- expect(screen.getByText('Last 2026-01-01')).toBeTruthy();
+ expect(await screen.findByText('Last 2026-01-01')).toBeTruthy();
});
});