diff --git a/packages/rrdom/test/diff.test.ts b/packages/rrdom/test/diff.test.ts index 67c5f652d5..00d31201c0 100644 --- a/packages/rrdom/test/diff.test.ts +++ b/packages/rrdom/test/diff.test.ts @@ -1831,13 +1831,13 @@ 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 - .spyOn(window, 'CSSStyleSheet') - .mockImplementationOnce(MockCSSStyleSheet as any); + vi.spyOn(window, 'CSSStyleSheet').mockImplementationOnce( + MockCSSStyleSheet as any, + ); const baseStyle = 'body {margin: 0;}'; const insertedStyle = 'div {display: flex;}';