diff --git a/packages/rrdom/test/diff.test.ts b/packages/rrdom/test/diff.test.ts index 67c5f652d5..3db7581b22 100644 --- a/packages/rrdom/test/diff.test.ts +++ b/packages/rrdom/test/diff.test.ts @@ -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);