Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests done seem to be passing #4

Open
piampri opened this issue Jun 13, 2021 · 0 comments
Open

Tests done seem to be passing #4

piampri opened this issue Jun 13, 2021 · 0 comments

Comments

@piampri
Copy link

piampri commented Jun 13, 2021

When running tests getting the following error on this library (reference branch master):

    TypeScript diagnostics (customize using `[jest-config].globals.ts-jest.diagnostics` option):
    src/mock-utilities.ts:40:26 - error TS2769: No overload matches this call.
      Overload 1 of 2, '(fn: (user: User, done: (err: any, id?: string | undefined) => void) => void): void', gave the following error.
        Argument of type '(user: User, done: (error: any, id: string) => void) => void' is not assignable to parameter of type '(user: User, done: (err: any, id?: string | undefined) => void) => void'.
          Types of parameters 'user' and 'user' are incompatible.
            Type 'User' is missing the following properties from type 'User': id, name, emails, provider
      Overload 2 of 2, '(fn: (req: IncomingMessage, user: User, done: (err: any, id?: unknown) => void) => void): void', gave the following error.
        Argument of type '(user: User, done: (error: any, id: string) => void) => void' is not assignable to parameter of type '(req: IncomingMessage, user: User, done: (err: any, id?: unknown) => void) => void'.
          Types of parameters 'user' and 'req' are incompatible.
            Type 'IncomingMessage' is missing the following properties from type 'User': id, name, emails, provider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant