mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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",
|
||||
|
@@ -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",
|
||||
|
@@ -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",
|
||||
|
@@ -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 });
|
||||
|
@@ -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}
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user