Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- Removed unnecessary nested object-literal spreads in the `react/test-utils.js` `IntlProvider` message helpers (`javascript:S7747`).

## [3.8.5] - 2026-08-31

## [3.8.4] - 2026-08-31
Expand Down
7 changes: 2 additions & 5 deletions react/test-utils.js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import { SIDEBAR } from '../constants/index.js'

const renderWithIntl = (node) => {
return render(
<IntlProvider
locale="pt"
messages={{ ...messages, ...{ 'country.BRA': 'BRA' } }}
>
<IntlProvider locale="pt" messages={{ ...messages, 'country.BRA': 'BRA' }}>
{node}
</IntlProvider>
)
Expand Down Expand Up @@ -40,7 +37,7 @@ const renderWithModalState = (node) => {
>
<IntlProvider
locale="pt"
messages={{ ...messages, ...{ 'country.BRA': 'BRA' } }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

spread heavy user 😅

messages={{ ...messages, 'country.BRA': 'BRA' }}
>
{node}
</IntlProvider>
Expand Down
Loading