File tree Expand file tree Collapse file tree 4 files changed +408
-10
lines changed
examples/lazy-injection/kitchen-sink Expand file tree Collapse file tree 4 files changed +408
-10
lines changed Original file line number Diff line number Diff line change 2424 },
2525 "devDependencies" : {
2626 "@testing-library/jest-dom" : " ^6.1.6" ,
27- "@testing-library/react" : " ^13.3.0 " ,
27+ "@testing-library/react" : " ^14.1.2 " ,
2828 "@testing-library/user-event" : " ^14.5.2" ,
2929 "@types/react" : " ^18.2.46" ,
3030 "@types/react-dom" : " ^18.2.18" ,
Original file line number Diff line number Diff line change 11import { screen , waitFor } from "@testing-library/react"
2+ import userEvent from "@testing-library/user-event"
23import App from "./App"
34import { renderWithProviders } from "./utils/test-utils"
4- import userEvent from "@testing-library/user-event"
55
66async function ensureCounterLoaded ( ) {
7- await userEvent . click ( screen . getByText ( "Counter example (lazy) " ) )
7+ await userEvent . click ( screen . getByText ( "Counter" ) )
88
99 await waitFor ( ( ) => expect ( screen . queryByTestId ( "count" ) ) . toBeInTheDocument ( ) )
1010}
Original file line number Diff line number Diff line change 2424 " examples/lazy-injection/*"
2525 ],
2626 "devDependencies" : {
27+ "@testing-library/react" : " ^14.1.2" ,
2728 "eslint" : " ^7.25.0" ,
2829 "eslint-config-prettier" : " ^8.3.0" ,
2930 "eslint-config-react-app" : " ^7.0.1" ,
You can’t perform that action at this time.
0 commit comments