chore: wip #15
Annotations
4 errors
lint
Process completed with exit code 2.
|
error: expect(received).toBe(expected):
test/dts.test.ts#L23
Expected: "export declare const config: { [key: string]: string };\nexport interface User {\n id: number;\n name: string;\n email: string;\n}\nexport type ResponseData = {\n success: boolean;\n data: User[];\n};\nexport declare function fetchUsers(): Promise<ResponseData>;\n\nexport declare const settings: { [key: string]: any };\nexport interface Product {\n id: number;\n name: string;\n price: number;\n}\nexport type ApiResponse<T> = {\n status: number;\n message: string;\n data: T;\n};\nexport declare function getProduct(id: number): Promise<ApiResponse<Product>>;\n\nexport declare const endpoints: {\n getUsers: string;\n getProducts: string;\n};\nexport interface Order {\n orderId: number;\n userId: number;\n productIds: number[];\n}\nexport type OrderResponse = {\n success: boolean;\n order: Order;\n};\nexport declare function createOrder(order: Order): Promise<OrderResponse>;\n\nexport declare const apiKeys: {\n google: string;\n facebook: string;\n};\nexport interface AuthResponse {\n token: string;\n expiresIn: number;\n}\nexport type AuthStatus = \"authenticated\" | \"unauthenticated\";\nexport declare function authenticate(user: string, password: string): Promise<AuthResponse>;\n\nexport declare const defaultHeaders: {\n \"Content-Type\": string;\n};\nexport interface Comment {\n id: number;\n postId: number;\n body: string;\n}\nexport type CommentsResponse = {\n comments: Comment[];\n};\nexport declare function fetchComments(postId: number): Promise<CommentsResponse>;\n"
Received: undefined
at /home/runner/work/dts-generation/dts-generation/test/dts.test.ts:23:22
|
test
Process completed with exit code 1.
|
typecheck
Process completed with exit code 2.
|