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

chore(deps): bump dependencies #477

Merged
merged 1 commit into from
Aug 14, 2023
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
4 changes: 2 additions & 2 deletions __tests__/components/ActionButton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand All @@ -19,7 +19,7 @@ describe('ActionButton', () => {
render(<ActionButton text="my-button-text" style="primary" />)
const sut = screen.getByText('my-button-text')
expect(sut).toHaveClass(
'inline-flex justify-center items-center font-display align-middle border shadow-sm focus:ring-1 focus:ring-offset-2 focus:ring-black focus:text-basic-white disabled:opacity-70 disabled:cursor-not-allowed disabled:shadow-none disabled:pointer-events-none undefined px-3.5 py-2.5 rounded text-base border-blue-dark bg-blue-dark text-basic-white focus:bg-blue-normal hover:bg-blue-normal active:bg-blue-active'
'inline-flex justify-center items-center font-display align-middle border shadow-sm focus:ring-1 focus:ring-offset-2 focus:ring-black focus:text-basic-white disabled:opacity-70 disabled:cursor-not-allowed disabled:shadow-none disabled:pointer-events-none undefined px-3.5 py-2.5 rounded text-base border-blue-dark bg-blue-dark text-basic-white focus:bg-blue-normal hover:bg-blue-normal active:bg-blue-active',
)
})

Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/ApplicationNameBar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/Banner.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/CheckStatusInfo.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/Collapse.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
6 changes: 3 additions & 3 deletions __tests__/components/DateModified.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand All @@ -22,7 +22,7 @@ describe('DateModified', () => {

it('renders dateModified', () => {
const { container } = render(
<DateModified id="date-modified" text="Date Modified" />
<DateModified id="date-modified" text="Date Modified" />,
)
const dl = container.querySelector('#date-modified')
const dt = dl?.querySelector('dt')
Expand All @@ -35,7 +35,7 @@ describe('DateModified', () => {

it('has no a11y violations', async () => {
const { container } = render(
<DateModified id="date-modified" text="Date Modified" />
<DateModified id="date-modified" text="Date Modified" />,
)
const results = await axe(container)
expect(results).toHaveNoViolations()
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/DateSelect.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/DateSelectField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
4 changes: 2 additions & 2 deletions __tests__/components/ErrorSummary.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand All @@ -18,7 +18,7 @@ describe('ErrorSummary', () => {
id="id"
summary="summary"
errors={[{ feildId: 'id', errorMessage: 'error' }]}
/>
/>,
)

it('renders', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/ExampleImage.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen, waitFor } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/ExternalLink.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
6 changes: 3 additions & 3 deletions __tests__/components/Footer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@testing-library/jest-dom'
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down Expand Up @@ -39,7 +39,7 @@ describe('Footer', () => {
linkText: 'some-link-4',
},
]}
/>
/>,
)
const footerLink = screen.getByText('some-link-4')
expect(footerLink).toBeInTheDocument()
Expand All @@ -63,7 +63,7 @@ describe('Footer', () => {
},
]}
footerNavHeader="testFooterNavHeader"
/>
/>,
)
const results = await axe(container)
expect(results).toHaveNoViolations()
Expand Down
4 changes: 2 additions & 2 deletions __tests__/components/Header.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down Expand Up @@ -39,7 +39,7 @@ describe('Header', () => {

it('has no a11y violations', async () => {
const { container } = render(
<Header gocLink="testGocLink" skipToMainText="testSkipToMainText" />
<Header gocLink="testGocLink" skipToMainText="testSkipToMainText" />,
)
const results = await axe(container)
expect(results).toHaveNoViolations()
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/IdleTimeout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen, waitFor } from '@testing-library/react'

import IdleTimeout from '../../src/components/IdleTimeout'
Expand Down
4 changes: 2 additions & 2 deletions __tests__/components/InputErrorMessage.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand All @@ -9,7 +9,7 @@ expect.extend(toHaveNoViolations)

describe('InputErrorMessage', () => {
const { container } = render(
<InputErrorMessage message="error message here" />
<InputErrorMessage message="error message here" />,
)

it('renders', () => {
Expand Down
10 changes: 5 additions & 5 deletions __tests__/components/InputField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand All @@ -15,7 +15,7 @@ describe('InputField', () => {
label="label"
onChange={() => {}}
value=""
/>
/>,
)

it('renders', () => {
Expand All @@ -39,15 +39,15 @@ describe('InputField', () => {
onChange={() => {}}
errorMessage="Error Message"
helpMessage="Help Message"
/>
/>,
)
const sut = getByTestId('accessible-description')
expect(sut).toBeInTheDocument()
expect(sut.querySelector('input')).toHaveAccessibleDescription(
expect.stringContaining('Error Message')
expect.stringContaining('Error Message'),
)
expect(sut.querySelector('input')).toHaveAccessibleDescription(
expect.stringContaining('Help Message')
expect.stringContaining('Help Message'),
)
})
})
4 changes: 2 additions & 2 deletions __tests__/components/InputLabel.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand All @@ -9,7 +9,7 @@ expect.extend(toHaveNoViolations)

describe('InputLabel', () => {
const { container } = render(
<InputLabel id="id" label="label" htmlFor="input" />
<InputLabel id="id" label="label" htmlFor="input" />,
)

it('renders', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/Layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/LinkButton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
10 changes: 5 additions & 5 deletions __tests__/components/Modal.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand All @@ -9,19 +9,19 @@ expect.extend(toHaveNoViolations)

//Mocks for dialog element until PR containing fix for TypeError is merged into jsdom
HTMLDialogElement.prototype.show = jest.fn(function mock(
this: HTMLDialogElement
this: HTMLDialogElement,
) {
this.open = true
})

HTMLDialogElement.prototype.showModal = jest.fn(function mock(
this: HTMLDialogElement
this: HTMLDialogElement,
) {
this.open = true
})

HTMLDialogElement.prototype.close = jest.fn(function mock(
this: HTMLDialogElement
this: HTMLDialogElement,
) {
this.open = false
})
Expand All @@ -35,7 +35,7 @@ describe('Modal', () => {
header={'header'}
>
<p>description</p>
</Modal>
</Modal>,
)

it('renders', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

import { axe, toHaveNoViolations } from 'jest-axe'
Expand Down
Loading