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

fix: export matchers from package #83

Merged
merged 1 commit into from
Jun 9, 2021
Merged

Conversation

mxschmitt
Copy link
Member

(I had the fix already locally)

fixes #82

@mxschmitt mxschmitt requested a review from mskelton June 9, 2021 18:22
@codecov-commenter
Copy link

Codecov Report

Merging #83 (51f93e0) into master (282350f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #83   +/-   ##
=======================================
  Coverage   90.97%   90.97%           
=======================================
  Files          10       10           
  Lines         144      144           
  Branches       26       26           
=======================================
  Hits          131      131           
  Misses         13       13           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 282350f...51f93e0. Read the comment docs.

Copy link
Member

@mskelton mskelton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -96,3 +96,5 @@ declare global {
interface Matchers<R> extends PlaywrightMatchers<R> {}
}
}

export const matchers: any
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const matchers: any
export const matchers: jest.ExpectExtendMap

This is the type extend.expect uses, so we could probably make this a bit stronger.

Copy link
Member Author

@mxschmitt mxschmitt Jun 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using it with Playwright, there is no Jest I think and expect.extend accepts any.

@mxschmitt mxschmitt merged commit 483c203 into master Jun 9, 2021
@mxschmitt mxschmitt deleted the bugfix/export-matchers branch June 9, 2021 19:19
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

Successfully merging this pull request may close these issues.

Support for @playwright/test
3 participants