diff --git a/fixtures/pages-workerjs-app/tests/index.test.ts b/fixtures/pages-workerjs-app/tests/index.test.ts index 43689db53f61..f68baee29f38 100644 --- a/fixtures/pages-workerjs-app/tests/index.test.ts +++ b/fixtures/pages-workerjs-app/tests/index.test.ts @@ -80,26 +80,16 @@ describe("Pages _worker.js", () => { "workerjs-test/XXX_worker.js" ); await setTimeout(1000); - expect(getOutput()).toMatchInlineSnapshot('""'); - - clearOutput(); + // Expect no output since the deletion of the worker should be ignored + expect(getOutput()).toBe(""); await tryRename( basePath, "workerjs-test/XXX_worker.js", "workerjs-test/_worker.js" ); await setTimeout(1000); - expect(getOutput()).toMatchInlineSnapshot(` - "✨ Compiled Worker successfully - - ⎔ Reloading local server... - -  - ▲ [WARNING] kj/filesystem-disk-unix.c++:1709: warning: PWD environment variable doesn't match current directory; pwd = /Users/pbacondarwin/dev/cloudflare/workers-sdk - - - " - `); + // Expect replacing the worker to now trigger a success build. + expect(getOutput()).toContain("Compiled Worker successfully"); } finally { await stop(); await tryRename(