This commit is contained in:
Ilia Mashkov
2025-11-23 13:46:48 +03:00
parent da0309f714
commit ec6867d7a0
2 changed files with 21 additions and 1 deletions

View File

@@ -1,2 +1,17 @@
import '@testing-library/jest-dom'
import 'regenerator-runtime/runtime'
// Глобальный мок для GSAP
jest.mock('gsap', () => {
return {
to: jest.fn(),
fromTo: jest.fn(),
killTweensOf: jest.fn(),
context: jest.fn(() => ({
revert: jest.fn(),
})),
Power2: {
easeOut: 'power2.out',
},
}
})