Skip to content

Commit

Permalink
fix: add watch=false to husky
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Oct 30, 2024
1 parent 3c5ee53 commit 973209c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
yarn --cwd drama-queen run format:check
yarn --cwd drama-queen run lint
yarn --cwd drama-queen run test
yarn --cwd drama-queen run test --watch=false
8 changes: 4 additions & 4 deletions drama-queen/src/core/tools/axiosError.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { handleAxiosError } from './axiosError'
import { AxiosError } from 'axios'

vi.mock('i18n', () => ({
getTranslation: () => ({ t: (keyMessage: string) => keyMessage }), // Remplacez par la logique de traduction souhaitée
getTranslation: () => ({ t: (keyMessage: string) => keyMessage }),
}))

describe('handleAxiosError', () => {
Expand Down Expand Up @@ -34,7 +34,7 @@ describe('handleAxiosError', () => {
} as AxiosError

const result = handleAxiosError(error)
expect(result.message).toBe('400') // Assurez-vous que la traduction pour '400' est correcte
expect(result.message).toBe('400')
})

it('should return the correct message for status 401', () => {
Expand All @@ -48,7 +48,7 @@ describe('handleAxiosError', () => {
} as AxiosError

const result = handleAxiosError(error)
expect(result.message).toBe('401') // Assurez-vous que la traduction pour '401' est correcte
expect(result.message).toBe('401')
})

it('should return the correct message for unknown status', () => {
Expand All @@ -62,6 +62,6 @@ describe('handleAxiosError', () => {
} as AxiosError

const result = handleAxiosError(error)
expect(result.message).toBe('longUnknownError') // Assurez-vous que la traduction pour 'longUnknownError' est correcte
expect(result.message).toBe('longUnknownError')
})
})

0 comments on commit 973209c

Please sign in to comment.