safely update packages

This commit is contained in:
Pas 2025-11-07 17:05:38 -07:00
parent 0bfc3248e0
commit 3ee123b78a
5 changed files with 4134 additions and 3317 deletions

View file

@ -10,9 +10,9 @@
"cf-typegen": "wrangler types"
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.8.19",
"typescript": "^5.5.2",
"@cloudflare/vitest-pool-workers": "^0.10.5",
"typescript": "^5.9.3",
"vitest": "~3.2.0",
"wrangler": "^4.20.5"
"wrangler": "^4.46.0"
}
}

1890
pests-repellent/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -14,11 +14,17 @@ describe('Hello World worker', () => {
const response = await worker.fetch(request, env, ctx);
// Wait for all `Promise`s passed to `ctx.waitUntil()` to settle before running test assertions
await waitOnExecutionContext(ctx);
expect(await response.text()).toMatchInlineSnapshot(`"Hello World!"`);
expect(await response.text()).toMatchInlineSnapshot(`
"<!doctype html><html lang="en"><head><title>Example Domain</title><meta name="viewport" content="width=device-width, initial-scale=1"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.<p><a href="https://iana.org/domains/example">Learn more</a></div></body></html>
"
`);
});
it('responds with Hello World! (integration style)', async () => {
const response = await SELF.fetch('https://example.com');
expect(await response.text()).toMatchInlineSnapshot(`"Hello World!"`);
expect(await response.text()).toMatchInlineSnapshot(`
"<!doctype html><html lang="en"><head><title>Example Domain</title><meta name="viewport" content="width=device-width, initial-scale=1"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.<p><a href="https://iana.org/domains/example">Learn more</a></div></body></html>
"
`);
});
});