From 3cfc4311f96f004c507360279924b6c12fb7cf92 Mon Sep 17 00:00:00 2001 From: Thomas Uster Date: Tue, 25 Jul 2023 11:08:43 -0700 Subject: [PATCH] Update examples/counter/src/App.test.js: --- examples/counter/src/App.test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/counter/src/App.test.js b/examples/counter/src/App.test.js index 980638bdf3..39fd241c19 100644 --- a/examples/counter/src/App.test.js +++ b/examples/counter/src/App.test.js @@ -1,15 +1,17 @@ import React from 'react'; -import { render, screen } from '@testing-library/react'; +import { createRoot, screen } from '@testing-library/react'; import { Provider } from 'react-redux'; import { store } from './app/store'; import App from './App'; test('renders learn react link', () => { - render( + const container = document.createElement('div'); + const root = createRoot(container); + root.render( ); expect(screen.getByText(/learn/i)).toBeInTheDocument(); -}); +}); \ No newline at end of file