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: detect expectations in chains with underscores #607

Merged

Conversation

ghusse
Copy link
Contributor

@ghusse ghusse commented Dec 19, 2024

Fixes expectation detection in call chains when one member contains an underscore.

For instance

it('should pass', () => {
  any_chain.to.expect(true)
})

Does not currently pass, whereas the following does pass

it('should pass', () => {
  anyChain.to.expect(true)
})

Copy link
Member

@veritem veritem left a comment

Choose a reason for hiding this comment

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

thanks

@veritem veritem merged commit d31fdb7 into vitest-dev:main Dec 19, 2024
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.

2 participants