Skip to content

Commit

Permalink
Remove some old references to jest and swap them with vi
Browse files Browse the repository at this point in the history
  • Loading branch information
guntherjh committed Oct 21, 2024
1 parent 6321c05 commit 650701f
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 @@ -1831,11 +1831,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 650701f

Please sign in to comment.