-
Notifications
You must be signed in to change notification settings - Fork 45
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
build: FORMS-1768 update happy-dom to fix vulnerability #1612
base: main
Are you sure you want to change the base?
Conversation
// This needs to be implemented | ||
// TODO: This needs to be implemented |
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.
Added a TODO
here to highlight the technical debt in Sonar.
const mockInputElement = document.createElement('input'); | ||
mockInputElement.type = 'file'; | ||
const file = await readFile(mockInputElement); |
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.
This was failing because readFile doesn't take a DOM element as input. Not sure how it ever passed.
Release fe252f1 deployed at https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-1612 |
windowOpenSpy.mockReset(); | ||
appendChildSpy.mockReset(); | ||
addNotificationSpy.mockReset(); |
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.
I think something in the mount
was calling these spies. Since we're not testing the mount, they should be cleared afterwards (tests were failing)
We're nine major versions behind on this package so it is going to break a few tests
9d99661
to
4f9d12d
Compare
|
Description
The GitHub Dependabot process has created an alert for the
happy-dom
dependency. To satisfy the requirements outlined in the Security Threat and Risk Assessment's (STRA) Statement of Acceptable Risks (SoAR), this vulnerability must be handled by updating the package version (or mitigated in some other way, if updating the package is not possible).https://github.com/bcgov/common-hosted-form-service/security/dependabot/211
Type of Change
build (change in build system or dependencies)
Checklist
Further comments
Note: also fixed a warning that the test config file format is using a deprecated element structure.