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

TypeScript errors when extending with Worker Fixtures #1

Open
yakovlev-alexey opened this issue Oct 24, 2022 · 0 comments
Open

TypeScript errors when extending with Worker Fixtures #1

yakovlev-alexey opened this issue Oct 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@yakovlev-alexey
Copy link
Owner

A section of the error

Types of property 'mhApiUrl' are incompatible.
      Type 'MailHogTestFixture<string>' is not assignable to type 'TestFixtureValue<string, TestFixtures & PomFixtures & MailHogFixtures & KcAdminFixtures & { assertUserExists: (credentials: Credentials) => Promise<...>; assertUserDoesNotExist: (username: string) => Promise<...>; } & ... 4 more ... & PlaywrightWorkerOptions> | [...]'.
        Type 'MailHogTestFixture<string>' is not assignable to type 'TestFixture<string, TestFixtures & PomFixtures & MailHogFixtures & KcAdminFixtures & { assertUserExists: (credentials: Credentials) => Promise<...>; assertUserDoesNotExist: (username: string) => Promise<...>; } & ... 4 more ... & PlaywrightWorkerOptions>'.
          Types of parameters 'args' and 'args' are incompatible.
            Type 'TestFixtures & PomFixtures & MailHogFixtures & KcAdminFixtures & { assertUserExists: (credentials: Credentials) => Promise<...>; assertUserDoesNotExist: (username: string) => Promise<...>; } & ... 4 more ... & PlaywrightWorkerOptions' is not assignable to type 'PlaywrightTestArgs & Partial<MailHogFixtures>'.
              Type 'TestFixtures & PomFixtures & MailHogFixtures & KcAdminFixtures & { assertUserExists: (credentials: Credentials) => Promise<...>; assertUserDoesNotExist: (username: string) => Promise<...>; } & ... 4 more ... & PlaywrightWorkerOptions' is not assignable to type 'PlaywrightTestArgs'.
                The types of 'context.exposeBinding' are incompatible between these types.
@yakovlev-alexey yakovlev-alexey added the bug Something isn't working label Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant