šŸ‘‹ I am curious about a code example I saw in the miniflare blog post: https://blog.cloudflare.com/m

šŸ‘‹ I am curious about a code example I saw in the miniflare blog post: https://blog.cloudflare.com/miniflare/
It contains:
export async function increment(namespace, key) {
  // method
}

export default {
  async fetch(request, env, ctx) {
    // handler which uses increment
  },
};


Is it common to expose internal methods like increment and test them separately in Jest? I thought it would be always "better" to only test the handler.
The official doc doesn't contain such examples, mostly curious here šŸ™‚
Was this page helpful?