mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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",
|
||||
|
||||
@@ -46,7 +46,7 @@ describe('Cascader', () => {
|
||||
|
||||
describe('options from state change', () => {
|
||||
beforeEach(() => {
|
||||
jest.useFakeTimers();
|
||||
jest.useFakeTimers('modern');
|
||||
});
|
||||
|
||||
it('displays updated options', () => {
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user