Update dependency @types/jest to v28 (#49249)

* Update dependency @types/jest to v28

* modern is now default!

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
renovate[bot]
2022-06-06 14:45:02 +01:00
committed by GitHub
parent 7b750cc0f0
commit 0c32dec9e2
13 changed files with 24 additions and 24 deletions

View File

@@ -53,7 +53,7 @@
"@testing-library/react-hooks": "8.0.0",
"@testing-library/user-event": "14.2.0",
"@types/history": "4.7.11",
"@types/jest": "27.5.1",
"@types/jest": "28.1.1",
"@types/jquery": "3.5.14",
"@types/lodash": "4.14.182",
"@types/marked": "4.0.3",

View File

@@ -43,7 +43,7 @@
"@testing-library/user-event": "14.2.0",
"@types/angular": "1.8.4",
"@types/history": "4.7.11",
"@types/jest": "27.5.1",
"@types/jest": "28.1.1",
"@types/lodash": "4.14.182",
"@types/react": "17.0.42",
"@types/react-dom": "17.0.14",

View File

@@ -127,7 +127,7 @@
"@types/grafana__slate-react": "npm:@types/slate-react@0.22.5",
"@types/hoist-non-react-statics": "3.3.1",
"@types/is-hotkey": "0.1.7",
"@types/jest": "27.5.1",
"@types/jest": "28.1.1",
"@types/jquery": "3.5.14",
"@types/lodash": "4.14.182",
"@types/mock-raf": "1.0.3",

View File

@@ -50,7 +50,7 @@ describe('Cascader', () => {
let user: UserEvent;
beforeEach(() => {
jest.useFakeTimers('modern');
jest.useFakeTimers();
// Need to use delay: null here to work with fakeTimers
// see https://github.com/testing-library/user-event/issues/833
user = userEvent.setup({ delay: null });

View File

@@ -30,7 +30,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('modern');
jest.useFakeTimers();
const { rerender } = render(
<LogRows
logRows={rows}

View File

@@ -17,7 +17,7 @@
"@types/deep-freeze": "^0.1.1",
"@types/grafana__slate-react": "npm:@types/slate-react@0.22.5",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "27.5.1",
"@types/jest": "28.1.1",
"@types/lodash": "4.14.182",
"@types/prop-types": "15.7.5",
"@types/react": "17.0.42",