Open
Conversation
Contributor
GabJen
commented
Sep 4, 2025
- Muda formtato de data e hora
- Adapta mocks e arquivos de teste
staviasz
requested changes
Nov 28, 2025
Collaborator
staviasz
left a comment
There was a problem hiding this comment.
Por favor de uma olhada nos comntarios adicionados a review
mocks/taskMock.ts
Outdated
| import { stringToDate } from '@/utils/formats/stringToDate'; | ||
|
|
||
| const { longDateString: dateNowStr, day, month, year } = stringToDate(); | ||
| /** |
|
|
||
| // Data do sistema entra em concordância com data no mock de tarefas | ||
| jest.useFakeTimers(); | ||
| jest.setSystemTime(new Date('2026-06-01 10:00')); |
Collaborator
There was a problem hiding this comment.
por favor explique o que significa esse trecho de codigo e poprque ele foi necessario?
staviasz
requested changes
Nov 28, 2025
Collaborator
staviasz
left a comment
There was a problem hiding this comment.
Por favor de uma olhada nos comntarios adicionados a review
mocks/taskMock.ts
Outdated
| * | ||
| * Se esses testes falharem por problemas de data no passado, | ||
| * atualize as strings de data para uma data futura. | ||
| */ |
| // Data do sistema entra em concordância com data no mock de tarefas | ||
| jest.useFakeTimers(); | ||
| jest.setSystemTime(new Date('2026-06-01 10:00')); | ||
|
|
Contributor
Author
Atualizações da tarefa:
Note Isso foi feito para entrar de acordo com a abordagem inicial, que utilizava o horário atual dinamicamente ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.