T
TanStack6mo ago
fascinating-indigo

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();
});
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').
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?