♻️(frontend) improve useSaveDoc hook

- add tests for useSaveDoc hook
- simplify hooks states
- reduce useEffect calls
This commit is contained in:
Anthony LC
2025-03-17 15:02:14 +01:00
committed by Anthony LC
parent f2ed8e0ea1
commit d5d2cfab8e
3 changed files with 207 additions and 46 deletions

View File

@@ -9,6 +9,7 @@ const createJestConfig = nextJest({
const config: Config = {
coverageProvider: 'v8',
moduleNameMapper: {
'^@/docs/(.*)$': '<rootDir>/src/features/docs/$1',
'^@/(.*)$': '<rootDir>/src/$1',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],