Skip to content

Commit

Permalink
Update test to use vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
jaj1014 committed Oct 22, 2024
1 parent 471c19e commit cf4b340
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit cf4b340

Please sign in to comment.