diff --git a/packages/wrangler/e2e/dev.test.ts b/packages/wrangler/e2e/dev.test.ts index 350a5bb36767..7ec1dc18ed57 100644 --- a/packages/wrangler/e2e/dev.test.ts +++ b/packages/wrangler/e2e/dev.test.ts @@ -929,13 +929,13 @@ describe("custom builds", () => { }); const resText = await retry( - (text) => text === "hello\n", + (text) => text.includes("hello"), async () => { const res2 = await fetch(url); return res2.text(); } ); - await expect(resText).toContain("world"); + await expect(resText).toBe("world"); }); });