Skip to content

feat(serve-static): support absolute root #5571

feat(serve-static): support absolute root

feat(serve-static): support absolute root #5571

Triggered via pull request September 22, 2024 01:21
Status Failure
Total duration 1m 4s
Artifacts 7

ci.yml

on: pull_request
Matrix: node
Checking if it's valid for JSR
11s
Checking if it's valid for JSR
Deno
16s
Deno
Bun
4s
Bun
Coverage
0s
Coverage
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 6 warnings
src/middleware/serve-static/index.test.ts > Serve Static Middleware > Changing root path > Should treat the root path includes .. as relative path: src/middleware/serve-static/index.test.ts#L271
AssertionError: expected 'Hello in ./../home/hono/static/html/h…' to be 'Hello in ./static/html/hello.html' // Object.is equality Expected: "Hello in ./static/html/hello.html" Received: "Hello in ./../home/hono/static/html/hello.html" ❯ src/middleware/serve-static/index.test.ts:271:32
Main
Process completed with exit code 1.
Main: src/client/types.test.ts#L7
'app' is assigned a value but only used as a type
Main: src/client/types.test.ts#L28
'app' is assigned a value but only used as a type
Main: src/client/types.test.ts#L45
'app' is assigned a value but only used as a type
Main: src/helper/factory/index.test.ts#L22
'route' is assigned a value but only used as a type
Main: src/helper/factory/index.test.ts#L54
'routesA' is assigned a value but only used as a type
Main: src/helper/ssg/ssg.test.tsx#L97
'c' is defined but only used as a type

Artifacts

Produced during runtime
Name Size
coverage-bun
8.69 KB
coverage-deno
110 KB
coverage-fastly
665 KB
coverage-lambda
673 KB
coverage-lambda-edge
667 KB
coverage-node
670 KB
coverage-workerd
651 KB