Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 374 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 374 Bytes

Ava Wrangler Fixture

Easily test your cloudflare worker projects using ava and typescript/javascript

Usage

import test from "ava"
import getTestServer from "ava-wrangler-fixture"

test("test server should work", async (t) => {
  const { axios } = await getTestServer(t)

  const res = await axios.post("/", { hello: "world!" })

  t.is(res.status, 200)
})