diff --git a/test/unit/link-warnings.test.js b/test/unit/link-warnings.test.js
index 09dcad373242f..9c48085132a3c 100644
--- a/test/unit/link-warnings.test.js
+++ b/test/unit/link-warnings.test.js
@@ -10,13 +10,12 @@ describe('', () => {
spy = jest.spyOn(console, 'error').mockImplementation(() => {})
})
- // Commenting out "test a" makes the problem go away.
- // This fails with NextJS 10.x, but works with 9.5.6.
it('test a', () => {})
- it('test c', () => {
+ it('test link', () => {
+ let result
act(() => {
- render(
+ result = render(
Hello
hello
@@ -24,6 +23,7 @@ describe('
', () => {
)
})
+ expect(result).toBeDefined()
expect(spy).not.toHaveBeenCalled()
})