feat: Оптимизация импортов

This commit is contained in:
Ilia Mashkov
2025-11-23 14:13:52 +03:00
parent 2a72e1077c
commit e4c563075f
5 changed files with 3 additions and 22 deletions

View File

@@ -1,17 +0,0 @@
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',
},
}
})

View File

@@ -9,7 +9,7 @@
*/
import classNames from 'classnames'
import gsap from 'gsap'
import { gsap } from 'gsap'
import { memo, useCallback, useEffect, useMemo, useRef } from 'react'
import styles from './CircleTimeline.module.scss'

View File

@@ -5,7 +5,7 @@
*/
import classNames from 'classnames'
import gsap from 'gsap'
import { gsap } from 'gsap'
import { memo, useEffect, useRef, useState } from 'react'
import { Swiper, SwiperSlide } from 'swiper/react'

View File

@@ -1,7 +1,5 @@
import { Navigation } from 'swiper/modules'
import styles from './EventsCarousel.module.scss'
import type { SwiperOptions } from 'swiper/types'
/**

View File

@@ -4,7 +4,7 @@
*/
import classNames from 'classnames'
import gsap from 'gsap'
import { gsap } from 'gsap'
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { HISTORICAL_PERIODS } from '@/entities/TimePeriod'