We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a0cb20 + fe4bc60 commit 0de8fe6Copy full SHA for 0de8fe6
packages/rrdom/test/diff.test.ts
@@ -1831,13 +1831,13 @@ describe('diff algorithm for rrdom', () => {
1831
1832
it('should not drop inserted styles when moving a style element with inserted styles', async () => {
1833
function MockCSSStyleSheet() {
1834
- this.replaceSync = jest.fn();
+ this.replaceSync = vi.fn();
1835
this.cssRules = [{ cssText: baseStyle }];
1836
}
1837
1838
- jest
1839
- .spyOn(window, 'CSSStyleSheet')
1840
- .mockImplementationOnce(MockCSSStyleSheet as any);
+ vi.spyOn(window, 'CSSStyleSheet').mockImplementationOnce(
+ MockCSSStyleSheet as any,
+ );
1841
1842
const baseStyle = 'body {margin: 0;}';
1843
const insertedStyle = 'div {display: flex;}';
0 commit comments