chore: Upgrade to Vitest 4 and regroup tests for performance (#2618)
This commit is contained in:
1 parent
a0fd464d23
commit
0c3d46ad3d
36 files changed
+1041
-1207
No files matched your search
@@ -35,11 +35,13 @@ describe('LazyLoadController', () => {
|
||||
Object.defineProperty(document, 'visibilityState', {
|
||||
value: 'visible',
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
vi.restoreAllMocks();
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
it('should be unloaded by default', () => {
|
||||
@@ -281,6 +283,7 @@ describe('LazyLoadController', () => {
|
||||
Object.defineProperty(document, 'visibilityState', {
|
||||
value: 'hidden',
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
|
||||
const controller = new LazyLoadController(createLitElement());
|
||||
|
||||
Reference in new issue
Block a user