Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test to use vitest
  • Loading branch information
jaj1014 committed Oct 22, 2024
commit cf4b340aa024d458c477a28c8cdc0643c890ef15
4 changes: 2 additions & 2 deletions packages/rrdom/test/diff.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1857,11 +1857,11 @@ describe('diff algorithm for rrdom', () => {

it('should not drop inserted styles when moving a style element with inserted styles', async () => {
function MockCSSStyleSheet() {
this.replaceSync = jest.fn();
this.replaceSync = vi.fn();
this.cssRules = [{ cssText: baseStyle }];
}

jest
vi
.spyOn(window, 'CSSStyleSheet')
.mockImplementationOnce(MockCSSStyleSheet as any);

Expand Down
Loading