diff --git a/src/components/SelectableCollection/SelectableCollection.test.tsx b/src/components/SelectableCollection/SelectableCollection.test.tsx
index 216518b0a..aad628d87 100644
--- a/src/components/SelectableCollection/SelectableCollection.test.tsx
+++ b/src/components/SelectableCollection/SelectableCollection.test.tsx
@@ -35,7 +35,7 @@ const exampleCollection = {
}
describe('SelectableCollection component', () => {
- it('renders the collection with disabled links and a select button', () => {
+ test('renders the collection with disabled links and a select button', () => {
const mockOnSelect = jest.fn()
render(
@@ -63,7 +63,7 @@ describe('SelectableCollection component', () => {
).toBeInTheDocument()
})
- it('clicking the button calls the select handler', async () => {
+ test('clicking the button calls the select handler', async () => {
const user = userEvent.setup()
const mockOnSelect = jest.fn()
@@ -83,7 +83,7 @@ describe('SelectableCollection component', () => {
expect(mockOnSelect).toBeCalled()
})
- it('the select handler is keyboard accessible', async () => {
+ test('the select handler is keyboard accessible', async () => {
const user = userEvent.setup()
const mockOnSelect = jest.fn()
@@ -105,7 +105,7 @@ describe('SelectableCollection component', () => {
expect(mockOnSelect).toBeCalled()
})
- it('has no a11y violations', async () => {
+ test('has no a11y violations', async () => {
const { container } = render(
{
})
describe('when selected', () => {
- it('renders an unselect button that appears on focus', async () => {
+ test('renders an unselect button that appears on focus', async () => {
const user = userEvent.setup()
const mockOnSelect = jest.fn()
@@ -144,7 +144,7 @@ describe('SelectableCollection component', () => {
expect(mockOnSelect).toBeCalled()
})
- it('has no a11y violations', async () => {
+ test('has no a11y violations', async () => {
const { container } = render(
{
})
describe('when disabled', () => {
- it('does not render a button', () => {
+ test('does not render a button', () => {
const mockOnSelect = jest.fn()
render(
@@ -177,7 +177,7 @@ describe('SelectableCollection component', () => {
).not.toBeInTheDocument()
})
- it('has no a11y violations', async () => {
+ test('has no a11y violations', async () => {
const { container } = render(
{
- it('renders the tag with no a11y violations', async () => {
+ test('renders the tag with no a11y violations', async () => {
const { container } = render(my tag)
expect(screen.queryByText('my tag')).toBeInTheDocument()
@@ -19,7 +19,7 @@ describe('Tag component', () => {
})
describe('Label component', () => {
- it('renders the label', async () => {
+ test('renders the label', async () => {
render()
expect(screen.queryByText('All Guardians')).toBeInTheDocument()
@@ -28,7 +28,7 @@ describe('Label component', () => {
})
describe('Category component', () => {
- it('renders the category with no a11y violations', async () => {
+ test('renders the category with no a11y violations', async () => {
const { container } = render(
)
diff --git a/src/components/Widget/Widget.test.tsx b/src/components/Widget/Widget.test.tsx
index 3263f82cc..d768f48d4 100644
--- a/src/components/Widget/Widget.test.tsx
+++ b/src/components/Widget/Widget.test.tsx
@@ -11,7 +11,7 @@ import React from 'react'
import Widget, { WidgetWithSettings } from './Widget'
describe('Widget component', () => {
- it('renders Widget', () => {
+ test('renders Widget', () => {
render(
Example widget}>Example widget contents
)
diff --git a/src/components/util/Flash/Flash.test.tsx b/src/components/util/Flash/Flash.test.tsx
index 054f9ed17..099edd7b5 100644
--- a/src/components/util/Flash/Flash.test.tsx
+++ b/src/components/util/Flash/Flash.test.tsx
@@ -10,11 +10,11 @@ import Flash from './Flash'
describe('Flash component', () => {
const testFlash = Test flash message
- it('renders its children', () => {
+ test('renders its children', () => {
render({testFlash})
})
- it('calls the clear function after a timeout', () => {
+ test('calls the clear function after a timeout', () => {
jest.useFakeTimers()
const mockHandleClear = jest.fn()
@@ -26,7 +26,7 @@ describe('Flash component', () => {
expect(mockHandleClear).toHaveBeenCalled()
})
- it('resets the timeout if the children change', () => {
+ test('resets the timeout if the children change', () => {
jest.useFakeTimers()
const mockHandleClear = jest.fn()
@@ -45,7 +45,7 @@ describe('Flash component', () => {
expect(mockHandleClear).toHaveBeenCalled()
})
- it('clears the timeout when unmounted', () => {
+ test('clears the timeout when unmounted', () => {
jest.useFakeTimers()
const mockHandleClear = jest.fn()
diff --git a/src/components/util/ModalPortal.test.tsx b/src/components/util/ModalPortal.test.tsx
index b7b8fe1aa..d5b4bdf56 100644
--- a/src/components/util/ModalPortal.test.tsx
+++ b/src/components/util/ModalPortal.test.tsx
@@ -8,7 +8,7 @@ import React from 'react'
import ModalPortal from './ModalPortal'
describe('ModalPortal', () => {
- it('renders nothing if there is no modal root', () => {
+ test('renders nothing if there is no modal root', () => {
render(
Test Modal
@@ -18,7 +18,7 @@ describe('ModalPortal', () => {
expect(screen.queryByRole('dialog')).not.toBeInTheDocument()
})
- it('renders children into the modal root once mounted', () => {
+ test('renders children into the modal root once mounted', () => {
const modalContainer = document.createElement('div')
modalContainer.setAttribute('id', 'modal-root')
diff --git a/src/components/util/NavLink/NavLink.test.tsx b/src/components/util/NavLink/NavLink.test.tsx
index eb356ae82..d759083a1 100644
--- a/src/components/util/NavLink/NavLink.test.tsx
+++ b/src/components/util/NavLink/NavLink.test.tsx
@@ -11,7 +11,7 @@ import NavLink from './NavLink'
const mockedUseRouter = useRouter as jest.Mock
describe('NavLink component', () => {
- it('renders the link and props', () => {
+ test('renders the link and props', () => {
render(
Home
@@ -28,7 +28,7 @@ describe('NavLink component', () => {
expect(link).toBeInstanceOf(HTMLAnchorElement)
})
- it('does not render the active class if the path is not active', () => {
+ test('does not render the active class if the path is not active', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about',
@@ -45,7 +45,7 @@ describe('NavLink component', () => {
expect(link).not.toHaveClass('usa-current')
})
- it('renders the active class if the path is active', () => {
+ test('renders the active class if the path is active', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about',
@@ -62,7 +62,7 @@ describe('NavLink component', () => {
expect(link).toHaveClass('usa-current')
})
- it('renders the active class if the parent path matches', () => {
+ test('renders the active class if the parent path matches', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about/subpage',
@@ -79,7 +79,7 @@ describe('NavLink component', () => {
expect(link).toHaveClass('usa-current')
})
- it('does not render the active class if a subpage of the parent path', () => {
+ test('does not render the active class if a subpage of the parent path', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about',
@@ -97,7 +97,7 @@ describe('NavLink component', () => {
})
describe('if the exact prop is set', () => {
- it('does not render the active class if the parent path matches', () => {
+ test('does not render the active class if the parent path matches', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about/subpage',
@@ -118,7 +118,7 @@ describe('NavLink component', () => {
expect(link).not.toHaveClass('usa-current')
})
- it('renders the active class if the exact path matches', () => {
+ test('renders the active class if the exact path matches', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about/subpage',
@@ -140,7 +140,7 @@ describe('NavLink component', () => {
})
})
- it('applies a custom active class', () => {
+ test('applies a custom active class', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about',
@@ -164,7 +164,7 @@ describe('NavLink component', () => {
describe('if the URL is a URL Object', () => {
// https://nextjs.org/docs/api-reference/next/link#with-url-object
- it('does not render the active class if the path is not active', () => {
+ test('does not render the active class if the path is not active', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about',
@@ -181,7 +181,7 @@ describe('NavLink component', () => {
expect(link).not.toHaveClass('usa-current')
})
- it('renders the active class if the path is active', () => {
+ test('renders the active class if the path is active', () => {
mockedUseRouter.mockReturnValueOnce({
route: '',
pathname: '/about',
@@ -198,7 +198,7 @@ describe('NavLink component', () => {
expect(link).toHaveClass('usa-current')
})
- it('does not break if there is no path', () => {
+ test('does not break if there is no path', () => {
render(
Home