Update dependency @testing-library/dom to v8 (#40990)

* Update dependency @testing-library/dom to v8

* Update our use of useFakeTimers

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
renovate[bot]
2021-10-27 16:57:20 +01:00
committed by GitHub
parent 5449bd9ae7
commit 99b50ffa00
8 changed files with 15 additions and 31 deletions

View File

@@ -110,7 +110,7 @@
"@storybook/manager-webpack5": "6.3.7",
"@storybook/react": "6.3.7",
"@storybook/theming": "6.3.7",
"@testing-library/dom": "7.29.4",
"@testing-library/dom": "8.10.1",
"@testing-library/jest-dom": "5.11.9",
"@testing-library/react": "11.1.2",
"@testing-library/react-hooks": "^3.2.1",

View File

@@ -46,7 +46,7 @@ describe('Cascader', () => {
describe('options from state change', () => {
beforeEach(() => {
jest.useFakeTimers();
jest.useFakeTimers('modern');
});
it('displays updated options', () => {

View File

@@ -29,7 +29,7 @@ describe('LogRows', () => {
it('renders rows only limited number of rows first', () => {
const rows: LogRowModel[] = [makeLog({ uid: '1' }), makeLog({ uid: '2' }), makeLog({ uid: '3' })];
jest.useFakeTimers();
jest.useFakeTimers('modern');
const wrapper = mount(
<LogRows
logRows={rows}