Player.jsx Component - Comprehensive Architecture Improvement, fix test

This commit is contained in:
Xavier Araque 2025-11-07 15:31:48 +01:00
parent b342035884
commit e3534fa56b
5 changed files with 7 additions and 7 deletions

View File

@ -7,9 +7,9 @@ import { createStore, combineReducers } from 'redux'
import { ThemeProvider } from '@material-ui/core/styles'
import { createMuiTheme } from '@material-ui/core/styles'
import { Player } from './Player'
import { playerReducer } from '../../reducers/player'
import { settingsReducer } from '../../reducers/settings'
import { replayGainReducer } from '../../reducers/replayGain'
import { playerReducer } from '../../reducers/playerReducer'
import { settingsReducer } from '../../reducers/settingsReducer'
import { replayGainReducer } from '../../reducers/replayGainReducer'
// Mock dependencies
jest.mock('../themes/useCurrentTheme', () => ({

View File

@ -1,6 +1,6 @@
/* eslint-env jest */
import { renderHook } from '@testing-library/react'
import { renderHook } from '@testing-library/react-hooks'
import { usePlayerState } from './usePlayerState'
import { useDispatch, useSelector } from 'react-redux'

View File

@ -1,6 +1,6 @@
/* eslint-env jest */
import { renderHook, act } from '@testing-library/react'
import { renderHook, act } from '@testing-library/react-hooks'
import { usePreloading } from './usePreloading'
describe('usePreloading', () => {

View File

@ -1,6 +1,6 @@
/* eslint-env jest */
import { renderHook, act } from '@testing-library/react'
import { renderHook, act } from '@testing-library/react-hooks'
import { useReplayGain } from './useReplayGain'
// Mock calculateGain utility

View File

@ -1,6 +1,6 @@
/* eslint-env jest */
import { renderHook, act } from '@testing-library/react'
import { renderHook, act } from '@testing-library/react-hooks'
import { useScrobbling } from './useScrobbling'
// Mock subsonic module