Skip to content

Commit

Permalink
test(ui): Enable sentry jest integration
Browse files Browse the repository at this point in the history
- re-enables performance and error monitoring in CI with jest.
- bumps jest
- removes duplicate jest-sentry-environment
  • Loading branch information
scttcper committed May 13, 2024
1 parent 4a732da commit 5cb2ce0
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 392 deletions.
3 changes: 2 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ const config: Config.InitialOptions = {
*/
clearMocks: true,

testEnvironment: 'jsdom',
// To disable the sentry jest integration, set this to 'jsdom'
testEnvironment: '@sentry/jest-environment-sentry/jsdom',
testEnvironmentOptions: {
sentryConfig: {
init: {
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@types/diff": "5.0.2",
"@types/dompurify": "^3.0.5",
"@types/invariant": "^2.2.35",
"@types/jest": "^29.5.3",
"@types/jest": "29.5.12",
"@types/js-beautify": "^1.14.3",
"@types/js-cookie": "^3.0.2",
"@types/lodash": "^4.14.182",
Expand Down Expand Up @@ -177,25 +177,24 @@
"@biomejs/biome": "^1.7.0",
"@codecov/webpack-plugin": "^0.0.1-beta.6",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@sentry/jest-environment": "^4.0.0",
"@sentry/jest-environment": "6.0.0",
"@sentry/profiling-node": "^8.0.0",
"@styled/typescript-styled-plugin": "^1.0.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/jest-dom": "6.4.5",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^20.11.7",
"babel-gettext-extractor": "^4.1.3",
"babel-jest": "^29.6.2",
"babel-jest": "29.7.0",
"benchmark": "^2.1.4",
"eslint": "8.57.0",
"eslint-config-sentry-app": "2.7.0",
"html-webpack-plugin": "^5.5.0",
"jest": "29.6.2",
"jest": "29.7.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.6.2",
"jest-fail-on-console": "^3.1.1",
"jest-environment-jsdom": "29.7.0",
"jest-fail-on-console": "3.3.0",
"jest-junit": "16.0.0",
"jest-sentry-environment": "3.0.0",
"postcss-styled-syntax": "0.6.4",
"react-refresh": "0.14.0",
"stylelint": "16.2.1",
Expand Down
Loading

0 comments on commit 5cb2ce0

Please sign in to comment.