-
Notifications
You must be signed in to change notification settings - Fork 9
[MOB-12122] Bump jest to v28 to resolve security vulnerabilities #532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #532 +/- ##
=======================================
Coverage 74.49% 74.49%
=======================================
Files 57 57
Lines 2741 2741
Branches 803 820 +17
=======================================
Hits 2042 2042
Misses 698 698
Partials 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
moduleNameMapper: pathsToModuleNameMapper(config.compilerOptions.paths, { | ||
prefix: '<rootDir>/' | ||
}), | ||
setupFiles: ['fake-indexeddb/auto', 'jest-localstorage-mock'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mock localstorage doesn't come bundled with jest anymore
mockGlobalProperty('crypto', webcrypto); | ||
|
||
const store = {}; | ||
mockGlobalProperty('localStorage', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
localStorage doesn't come bundled with jest anymore (but it's needed for generating UUA mocks)
Object.defineProperty(global, property, { writable: true, value }); | ||
}; | ||
|
||
mockGlobalProperty('crypto', webcrypto); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crypto.getRandomValues don't come bundled with jest anymore (but it's needed for generating uuid mocks)
JIRA Ticket(s) if any
Description
Bump jest to v28. Resolve security vulnerabilities in downstream form-data dependency.