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

feat(expect): support expect.extend() api #4412

Merged
merged 11 commits into from
Mar 4, 2024

Conversation

eryue0220
Copy link
Contributor

This pr is one of prs to solve #3964, which is to support expect.extend api.

@eryue0220 eryue0220 requested a review from kt3k as a code owner February 28, 2024 07:40
expect/_extend_test.ts Outdated Show resolved Hide resolved
expect/expect.ts Outdated
@@ -94,7 +98,7 @@ const matchers: Record<MatcherKey, Matcher> = {
toThrow,
};

export function expect(value: unknown, customMessage?: string): Expected {
export const expect = (value: unknown, customMessage?: string): Expected => {
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, thank you. I missed it.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

Nicely implemented! Thanks!

@kt3k kt3k changed the title feat(expect): support expect.extend api feat(expect): support expect.extend() api Mar 4, 2024
@kt3k kt3k merged commit 76e3ec8 into denoland:main Mar 4, 2024
7 checks passed
@eryue0220 eryue0220 deleted the feat/expect-extend branch March 4, 2024 15:22
@kt3k kt3k mentioned this pull request Mar 5, 2024
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants