diff --git a/app/page.test.tsx b/app/page.test.tsx
index c41e1a4..df14aee 100644
--- a/app/page.test.tsx
+++ b/app/page.test.tsx
@@ -6,16 +6,15 @@
// SPDX-License-Identifier: MIT
//
-import React from 'react'
-import { render } from '@testing-library/react'
+import { render, screen } from '@testing-library/react'
import '@testing-library/jest-dom'
import Home from './page'
describe('Home Component', () => {
it('renders the Stanford Biodesign Digital Health Next.js Template heading', () => {
- const { getByText } = render()
+ render()
- const headingElement = getByText(
+ const headingElement = screen.getByText(
/Welcome to the Stanford Biodesign Digital Health Next.js Template/i,
)
@@ -23,9 +22,9 @@ describe('Home Component', () => {
})
it('renders the Stanford Biodesign Logo', () => {
- const { getByAltText } = render()
+ render()
- const imageElement = getByAltText(
+ const imageElement = screen.getByAltText(
'Stanford Biodesign Logo',
) as HTMLImageElement