Skip to content

fix: extend request context to fix bug with req.json() #24

fix: extend request context to fix bug with req.json()

fix: extend request context to fix bug with req.json() #24

Triggered via pull request October 4, 2023 10:07
Status Failure
Total duration 24s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
TypeError: stream.getReader is not a function. (In 'stream.getReader()': src/__fixtures__/stream-to-text.ts#L4
at /home/runner/work/brisa/brisa/src/__fixtures__/stream-to-text.ts:4:17 at streamToText (/home/runner/work/brisa/brisa/src/__fixtures__/stream-to-text.ts:2:2) at /home/runner/work/brisa/brisa/src/utils/load-layout/index.test.tsx:30:27 at /home/runner/work/brisa/brisa/src/utils/load-layout/index.test.tsx:21:70
TypeError: stream.getReader is not a function. (In 'stream.getReader()': src/__fixtures__/stream-to-text.ts#L4
at /home/runner/work/brisa/brisa/src/__fixtures__/stream-to-text.ts:4:17 at streamToText (/home/runner/work/brisa/brisa/src/__fixtures__/stream-to-text.ts:2:2) at /home/runner/work/brisa/brisa/src/utils/load-layout/index.test.tsx:46:27
error: expect(received).toBe(expected): src/utils/get-locale-from-request/index.test.ts#L100
Expected: "ru" Received: "en" at /home/runner/work/brisa/brisa/src/utils/get-locale-from-request/index.test.ts:100:6
TypeError: Expected string: src/utils/get-route-matcher/index.ts#L21
at routeMatcher (/home/runner/work/brisa/brisa/src/utils/get-route-matcher/index.ts:21:18) at /home/runner/work/brisa/brisa/src/utils/adapt-router-to-page-translations/index.test.ts:76:46
TypeError: Expected string: src/utils/get-route-matcher/index.ts#L21
at routeMatcher (/home/runner/work/brisa/brisa/src/utils/get-route-matcher/index.ts:21:18) at match (/home/runner/work/brisa/brisa/src/utils/adapt-router-to-page-translations/index.ts:49:15) at /home/runner/work/brisa/brisa/src/utils/adapt-router-to-page-translations/index.test.ts:89:46
TypeError: Expected string: src/utils/get-route-matcher/index.ts#L21
at routeMatcher (/home/runner/work/brisa/brisa/src/utils/get-route-matcher/index.ts:21:18) at match (/home/runner/work/brisa/brisa/src/utils/adapt-router-to-page-translations/index.ts:49:15) at /home/runner/work/brisa/brisa/src/utils/adapt-router-to-page-translations/index.test.ts:103:46
TypeError: "undefined" cannot be parsed as a URL.
at new URL (:1:32) at routeMatcher (/home/runner/work/brisa/brisa/src/utils/get-route-matcher/index.ts:15:16) at /home/runner/work/brisa/brisa/src/utils/get-route-matcher/index.test.ts:33:44
TypeError: "undefined" cannot be parsed as a URL.
at new URL (:1:32) at routeMatcher (/home/runner/work/brisa/brisa/src/utils/get-route-matcher/index.ts:15:16) at /home/runner/work/brisa/brisa/src/utils/get-route-matcher/index.test.ts:43:44
TypeError: Expected string: src/utils/get-route-matcher/index.ts#L21
at routeMatcher (/home/runner/work/brisa/brisa/src/utils/get-route-matcher/index.ts:21:18) at /home/runner/work/brisa/brisa/src/utils/handle-i18n/index.test.ts:127:36
TypeError: stream.getReader is not a function. (In 'stream.getReader()': src/__fixtures__/stream-to-text.ts#L4
at /home/runner/work/brisa/brisa/src/__fixtures__/stream-to-text.ts:4:17 at streamToText (/home/runner/work/brisa/brisa/src/__fixtures__/stream-to-text.ts:2:2) at /home/runner/work/brisa/brisa/src/core/render-to-readable-stream/index.test.tsx:28:27 at /home/runner/work/brisa/brisa/src/core/render-to-readable-stream/index.test.tsx:25:45
build
Unexpected input(s) 'version', valid inputs are ['bun-version']