We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi !
In vscode, the expect library imported from '@playwright/test' proposes only a few choices:
And using the available assertions displays an error. For example:
import { expect } from '@playwright/test'; expect(...).toBe(...) // Property 'toBe' does not exist on type 'Matchers<string>'.ts(2339)
The text was updated successfully, but these errors were encountered:
As a workaround for now setting esModuleInterop or allowSyntheticDefaultImports to true in your tsconfig.json under compilerOptions should fix it.
esModuleInterop
allowSyntheticDefaultImports
true
tsconfig.json
compilerOptions
Sorry, something went wrong.
It worked perfectly, thanks @mxschmitt !
Successfully merging a pull request may close this issue.
Hi !
In vscode, the expect library imported from '@playwright/test' proposes only a few choices:
And using the available assertions displays an error. For example:
The text was updated successfully, but these errors were encountered: