feat:
This commit is contained in:
@@ -1,2 +1,17 @@
|
|||||||
import '@testing-library/jest-dom'
|
import '@testing-library/jest-dom'
|
||||||
import 'regenerator-runtime/runtime'
|
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',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|||||||
@@ -18,7 +18,12 @@
|
|||||||
"./src/*"
|
"./src/*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"strict": true
|
"strict": true,
|
||||||
|
"types": [
|
||||||
|
"node",
|
||||||
|
"jest",
|
||||||
|
"@testing-library/jest-dom"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"ts-node": {
|
"ts-node": {
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
|||||||
Reference in New Issue
Block a user