vite-plugin-cloudflare icon indicating copy to clipboard operation
vite-plugin-cloudflare copied to clipboard

Testing with Vite

Open litewarp opened this issue 1 year ago • 1 comments

The official examples for miniflare use a miniflare test environment with jest. See here, e.g.

The environment is from the package jest-environment-miniflare. There are official instructions for jest, but I can't seem to get it working with vitest. Any ideas on how to use your plugin with vitest and this environment?

Thanks!

litewarp avatar Aug 17 '22 22:08 litewarp

@litewarp Thanks for submitting this! This hasn't been implemented yet, but I'd like to do so! could you please let me know what the environment should be like and how'd you like to test vite-plugin-cloudflare in vitest? What is the expected result?

Aslemammad avatar Aug 18 '22 07:08 Aslemammad