package.json fix

package version change for jest to match jest-env-jsdom


package.json
This commit is contained in:
Rares Mardare 2022-11-03 16:58:34 +02:00
parent 9cc700fd05
commit 1852c6c441
4 changed files with 334 additions and 1219 deletions

View file

@ -53,16 +53,16 @@
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@grafana/data": "^9.1.1",
"@grafana/data": "9.1.1",
"@grafana/eslint-config": "^5.0.0",
"@grafana/runtime": "^9.1.1",
"@grafana/toolkit": "^9.1.1",
"@grafana/ui": "^9.1.1",
"@jest/globals": "29.2.2",
"@grafana/runtime": "9.1.1",
"@grafana/toolkit": "9.1.1",
"@grafana/ui": "9.1.1",
"@jest/globals": "27.5.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "12",
"@types/dompurify": "^2.3.4",
"@types/jest": "29.2.1",
"@types/jest": "27.5.1",
"@types/lodash-es": "^4.17.6",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^18.0.6",
@ -71,6 +71,7 @@
"@types/react-test-renderer": "^17.0.2",
"@types/throttle-debounce": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"babel-plugin-dynamic-import-node": "^2.3.3",
"copy-webpack-plugin": "^11.0.0",
"dompurify": "^2.3.12",
"eslint": "^8.25.0",
@ -78,8 +79,8 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-rulesdir": "^0.2.1",
"jest": "29.2.2",
"jest-environment-jsdom": "^29.2.2",
"jest": "27.5.1",
"jest-environment-jsdom": "^27.5.1",
"lint-staged": "^10.2.11",
"lodash-es": "^4.17.21",
"moment-timezone": "^0.5.35",

View file

@ -33,4 +33,4 @@ describe('CardButton', () => {
function getRootBlockEl(): HTMLElement {
return screen.queryByTestId<HTMLElement>('test__cardButton');
}
});
});

View file

@ -7,7 +7,6 @@ import '@testing-library/jest-dom';
import outgoingWebhooksStub from 'jest/outgoingWebhooksStub';
import { OutgoingWebhook } from 'models/outgoing_webhook/outgoing_webhook.types';
import { OutgoingWebhooks } from 'pages/outgoing_webhooks/OutgoingWebhooks';
const outgoingWebhooks = outgoingWebhooksStub as OutgoingWebhook[];
@ -24,7 +23,7 @@ const outgoingWebhookStore = () => ({
jest.mock('@grafana/runtime', () => ({
config: {
featureToggles: {
topNav: false
topNav: false,
},
},
}));
@ -80,4 +79,4 @@ describe('OutgoingWebhooks', () => {
function queryEditForm(): HTMLElement {
return screen.getByTestId<HTMLElement>('test__outgoingWebhookEditForm');
}
});
});

File diff suppressed because it is too large Load diff