Skip to content

Commit

Permalink
Upgrade deprecated dependencies (#1124)
Browse files Browse the repository at this point in the history
* upgrade lighthouse cli

* upgrade formatjs cli
  • Loading branch information
kevinxh authored Apr 24, 2023
1 parent 68cb474 commit 2f73309
Show file tree
Hide file tree
Showing 6 changed files with 991 additions and 5,222 deletions.
3 changes: 3 additions & 0 deletions packages/pwa-kit-dev/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe('Swatch Component', () => {
<Page />
</Router>
)
expect(screen.getAllByRole('link')).toHaveLength(data.values.length)
expect(screen.getAllByRole('radio')).toHaveLength(data.values.length)
})

test('swatch can be selected', () => {
Expand All @@ -126,8 +126,8 @@ describe('Swatch Component', () => {
</Router>
)

expect(screen.getAllByRole('link')).toHaveLength(data.values.length)
const firstSwatch = screen.getAllByRole('link')[0]
expect(screen.getAllByRole('radio')).toHaveLength(data.values.length)
const firstSwatch = screen.getAllByRole('radio')[0]
fireEvent.click(firstSwatch)
waitFor(() => {
expect(history.search).toBe('?color=BLACKFB')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const Swatch = (props) => {
}}
aria-checked={selected}
variant="outline"
role="radio"
>
<Center {...styles.swatchButton}>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ test('onVariantSelected callback is called after successfully selected a variant
/>
)

const size = screen.getByRole('link', {name: /xl/i})
const size = screen.getByRole('radio', {name: /xl/i})
userEvent.click(size)

await waitFor(() => {
Expand Down
Loading

0 comments on commit 2f73309

Please sign in to comment.