# Testing signals — elysiajs/elysia

> Canonical page: https://codevetter.com/unpack/elysia/testing-signals

# Testing signals — elysiajs/elysia

Scanned commit e037eca710e7ad193be09cc6615ab0dbe54af914 (2026-08-26). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Tests and CI were inspected, not executed; no passing result is asserted. Bun tests exercise request behavior and regressions, while a separate TypeScript project checks public inference. Node and Cloudflare scripts provide integration smoke checks with narrower assertions. The inspected inventory is bounded, and commented tests identify local coverage limits without establishing repository-wide absence.
- The documented unit framework is bun:test with files under test; CONTRIBUTING recommends bun test test/<test-file>.ts for a focused check. — [CONTRIBUTING.md#L19-24](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/CONTRIBUTING.md#L19-L24) [test/core/dynamic.test.ts#L1-6](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/core/dynamic.test.ts#L1-L6)
- Tests and CI were inspected, not executed: the aggregate test script chains functionality, type and Node checks, and CI separately invokes Cloudflare checks after building. — [package.json#L179-185](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/package.json#L179-L185) [.github/workflows/ci.yml#L24-31](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/.github/workflows/ci.yml#L24-L31)
- Dynamic-mode tests explicitly configure aot:false and assert JSON body validation, derive/resolve context and invalid-input 422 behavior. — [test/core/dynamic.test.ts#L24-44](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/core/dynamic.test.ts#L24-L44) [test/core/dynamic.test.ts#L122-151](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/core/dynamic.test.ts#L122-L151)
- Standard Schema integration tests check valid and invalid Zod bodies, coerced queries and combined status-specific responses; validator unit tests insist Check returns booleans rather than truthy failure wrappers. — [test/standard-schema/validate.test.ts#L7-46](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/standard-schema/validate.test.ts#L7-L46) [test/standard-schema/validate.test.ts#L131-181](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/standard-schema/validate.test.ts#L131-L181) [test/units/get-schema-validator.test.ts#L21-43](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/units/get-schema-validator.test.ts#L21-L43)
- Native-static regressions assert promotion refusal for request schemas and observing hooks, preserve eligible constant routes, and require request hooks to remain uncalled during registration. — [test/core/native-static.test.ts#L83-164](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/core/native-static.test.ts#L83-L164)
- Cookie tests exercise signature verification and key rotation; range tests check open-ended, bounded, suffix and invalid ranges, explicitly accepting only the first range of a multi-range request. — [test/cookie/signature.test.ts#L31-67](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/cookie/signature.test.ts#L31-L67) [test/cookie/signature.test.ts#L120-135](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/cookie/signature.test.ts#L120-L135) [test/response/range.test.ts#L18-80](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/response/range.test.ts#L18-L80)
- Type tests use expect-type and tsc with test/types as the configured include; Node CJS/ESM fixtures each validate a simple typed GET through app.handle, while Cloudflare polls only the root response. — [test/types/lifecycle/soundness.ts#L1-28](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/types/lifecycle/soundness.ts#L1-L28) [tsconfig.test.json#L104-105](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/tsconfig.test.json#L104-L105) [test/node/esm/index.js#L12-24](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/node/esm/index.js#L12-L24) [test/cloudflare/script/test.ts#L7-24](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/cloudflare/script/test.ts#L7-L24)
- Local coverage limits include commented cookie decoding cases, dynamic query-reference cases and a WebSocket subscribe/publish case; active WebSocket tests do exercise a real listen(0) connection. — [test/cookie/signature.test.ts#L70-118](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/cookie/signature.test.ts#L70-L118) [test/core/dynamic.test.ts#L718-760](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/core/dynamic.test.ts#L718-L760) [test/ws/message.test.ts#L7-30](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/ws/message.test.ts#L7-L30) [test/ws/message.test.ts#L59-85](https://github.com/elysiajs/elysia/blob/e037eca710e7ad193be09cc6615ab0dbe54af914/test/ws/message.test.ts#L59-L85)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
