Skip to content

Ddfbra 200 anonym og indlogget bruger kan prove e bog #130

Ddfbra 200 anonym og indlogget bruger kan prove e bog

Ddfbra 200 anonym og indlogget bruger kan prove e bog #130

Triggered via pull request November 20, 2024 09:46
Status Failure
Total duration 1m 24s
Artifacts

type-check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: __tests__/config.test.ts#L7
Argument of type '"unknown.thingy"' is not assignable to parameter of type '"token.adgangsplatformen.library" | "search.item.limit" | "search.offset.initial" | "search.param.initial" | "search.facet.limit" | "search.branch.ids" | "search.facets" | ... 8 more ... | "app.url"'.
build: __tests__/refresh-token.test.ts#L27
Property 'mockResolvedValue' does not exist on type '{ <T extends object>(cookies: CookieStore, sessionOptions: SessionOptions): Promise<IronSession<T>>; <T extends object>(req: Request | IncomingMessage, res: Response | ServerResponse<...>, sessionOptions: SessionOptions): Promise<...>; }'.
build: __tests__/refresh-token.test.ts#L44
Property 'mockResolvedValue' does not exist on type '{ <T extends object>(cookies: CookieStore, sessionOptions: SessionOptions): Promise<IronSession<T>>; <T extends object>(req: Request | IncomingMessage, res: Response | ServerResponse<...>, sessionOptions: SessionOptions): Promise<...>; }'.
build: __tests__/refresh-token.test.ts#L60
Property 'mockResolvedValue' does not exist on type '{ <T extends object>(cookies: CookieStore, sessionOptions: SessionOptions): Promise<IronSession<T>>; <T extends object>(req: Request | IncomingMessage, res: Response | ServerResponse<...>, sessionOptions: SessionOptions): Promise<...>; }'.
build: __tests__/refresh-token.test.ts#L72
Property 'mockResolvedValue' does not exist on type '{ <T extends object>(cookies: CookieStore, sessionOptions: SessionOptions): Promise<IronSession<T>>; <T extends object>(req: Request | IncomingMessage, res: Response | ServerResponse<...>, sessionOptions: SessionOptions): Promise<...>; }'.
build: __tests__/search.test.ts#L35
Namespace 'global.jest' has no exported member 'Mock'.
build: __tests__/search.test.ts#L52
Property 'mockReturnValue' does not exist on type '<TValue>(key: "token.adgangsplatformen.library" | "search.item.limit" | "search.offset.initial" | "search.param.initial" | "search.facet.limit" | "search.branch.ids" | "search.facets" | ... 8 more ... | "app.url") => TValue'.
build: __tests__/search.test.ts#L112
Argument of type '"LIX"' is not assignable to parameter of type '"materialTypesGeneral" | "mainLanguages" | "age" | "lixRange" | "subjects" | "location" | "accessTypes" | "ageRange" | "branchId" | "canAlwaysBeLoaned" | "childrenOrAdults" | ... 12 more ... | "year"'.
build: __tests__/url.test.ts#L6
Object literal may only specify known properties, and 'id' does not exist in type '{ wid: string | number; }'.
build: __tests__/url.test.ts#L13
Object literal may only specify known properties, and 'id' does not exist in type '{ wid: string | number; }'.