Testing Server Functions with Playwright

Is anyone aware of any examples of testing Server Functions with Playwright? If I do this:

test('server function', async ({ page }) => {
  const result = await getFavorites();
});


getHeaders from @tanstack/react-start/server fails with TypeError: Cannot read properties of undefined (reading 'config').
Was this page helpful?