Skip to content

Commit 3941de8

Browse files
committed
Mock out assignedElements from HTMLSlotElement
1 parent 560c379 commit 3941de8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/ql-vscode/src/view/jest.setup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ window.ElementInternals.prototype.setFormValue = jest
2828
window.ElementInternals.prototype.setValidity = jest
2929
.fn()
3030
.mockReturnValue(undefined);
31+
window.HTMLSlotElement.prototype.assignedElements = jest
32+
.fn()
33+
.mockReturnValue([]);
3134

3235
// Store this on the window so we can mock it
3336
window.vsCodeApi = {

0 commit comments

Comments
 (0)