GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use `.toHaveProperty` to check for property by nicolo-ribaudo · Pull Request #16296 · babel/babel

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented Feb 21, 2024

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Fixes the CI failure in #16294 (that is actually also failing on main, we just didn't trigger CI yet)

[email protected] was recently released, with a change that causes expect(notAnIterable).not.toContain(foo) to throw rather than passing because notAnIterable does not contain anything so it doesn't contain foo (jestjs/jest@bd3a7e9).

Our CI somehow pulls in not only the latest stable version of packages, but the latest version in general and so it uncovered this bug in our tests.

@SimenB I don't think this change was intentional, but maybe it would be great to have it documented in the 30.0.0 release notes :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nicolo-ribaudo
Use .toHaveProperty to check for property
78b0eb9
@nicolo-ribaudo nicolo-ribaudo added the PR: Fixes failing main label Feb 21, 2024
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Feb 21, 2024
More aggressively inline decorators in the static block #16294
Merged
@nicolo-ribaudo

nicolo-ribaudo commented Feb 21, 2024

Copy link
Copy Markdown
Member Author

Also @liuxingbaoyu pleae take a look at the REPL job failure :)

liuxingbaoyu reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JLHwung
JLHwung approved these changes Feb 21, 2024
View reviewed changes
@SimenB

SimenB commented Feb 21, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

That was most definitely not on purpose! 😅 Might be kinda correct, though? not sure 🤔 do you have a minimal reproduction?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu
liuxingbaoyu approved these changes Feb 21, 2024
View reviewed changes
@nicolo-ribaudo

nicolo-ribaudo commented Feb 21, 2024

Copy link
Copy Markdown
Member Author

@SimenB I think the new beahvior better than the old one :) expect({}).not.toContain(1) passes in 29 and throws in 30.

SimenB reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nicolo-ribaudo
nicolo-ribaudo merged commit 458937c into babel:main Feb 21, 2024
@nicolo-ribaudo
nicolo-ribaudo deleted the fix-main branch February 21, 2024 15:05
@SimenB

SimenB commented Feb 21, 2024

Copy link
Copy Markdown
Contributor

cool 👍 will leave it be, then 🙂 unless the error message is bad?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nicolo-ribaudo

nicolo-ribaudo commented Feb 21, 2024

Copy link
Copy Markdown
Member Author

The error message is terrible (it always just says received is not iterable), but probably it's ok since it should only happen with wrong input to expect.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu pushed a commit to liuxingbaoyu/babel that referenced this pull request Mar 5, 2024
@nicolo-ribaudo @liuxingbaoyu
Use .toHaveProperty to check for property (babel#16296)
d34bc89
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 24, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@JLHwung JLHwung JLHwung approved these changes
@liuxingbaoyu liuxingbaoyu liuxingbaoyu approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Fixes failing main

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@nicolo-ribaudo @SimenB @JLHwung @liuxingbaoyu
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.