🔥 Miniflare
Miniflare is a simulator for developing and testing Cloudflare Workers. The runtime is powered by workerd and opensource JavaScript/Wasm server first runtime.
Refer to the tests for running examples.
npm i -s miniflare@4
gleam add miniflare@1
import miniflare
pub fn main() -> Nil {
// TODO: An example of the project in use
}
Further documentation can be found at https://hexdocs.pm/miniflare.
Development
gleam run # Run the project
gleam test # Run the tests
// https://developers.cloudflare.com/workers/testing/miniflare/get-started/#reference // https://cf-miniflare.pages.dev/core/standards#mocking-outbound-fetch-requests