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