Skip to content

Fix reported location - #262

Merged
SimenB merged 2 commits into
jest-community:mainfrom
thatsmydoing:fix-location
Oct 5, 2024
Merged

SimenB merged 2 commits into
jest-community:mainfrom
thatsmydoing:fix-location

Conversation

@thatsmydoing

Copy link
Copy Markdown
Contributor

Fixes #258

@ljharb

ljharb commented Oct 1, 2024

Copy link
Copy Markdown
Collaborator

The fix is straightforward, but we'll need regression tests.

@thatsmydoing thatsmydoing left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've added a test case for it.

{
errorCount: mockOptions.errorCount,
warningCount: 0,
messages: [

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The number of entries here should probably match mockOptions.errorCount but for the purposes of testing, this is probably fine? The original test didn't even have messages to begin with.

@ljharb ljharb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM if tests pass

@ljharb
ljharb requested a review from SimenB October 3, 2024 10:16

@SimenB SimenB left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@SimenB
SimenB merged commit 9abd049 into jest-community:main Oct 5, 2024
@SimenB

SimenB commented Oct 5, 2024 •

Copy link
Copy Markdown
Member

I'm away from a laptop today, but can make a release tomorrow or Monday 👍

@SimenB

SimenB commented Oct 7, 2024

Copy link
Copy Markdown
Member

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.

Jest result column and line are flipped

3 participants