Skip to content

Conversation

@EugenEistrach
Copy link

@EugenEistrach EugenEistrach commented Feb 13, 2025

add basic mock functionality for client. we can execute this somewhere in our code to change the function to be mocked, e.g.:

  console.log('Default mock!')
  return { message: 'Hello from default mock!' }
})

not sure if this is suitable or we need some other approach.
also might need to think if this should be controlled by some flag or whatever..

also have create this package that does allow mock in userland without having to add the mock logic to the server functions themself https://www.npmjs.com/package/tanstack-mock-server-fn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants