feat(serve-static): support absolute root #5571
ci.yml
on: pull_request
Matrix: node
Main
55s
Fastly Compute
16s
workerd
25s
AWS Lambda
16s
Lambda@Edge
17s
Coverage
0s
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 |
|