Skip to content

tests: adiciona testes #42

tests: adiciona testes

tests: adiciona testes #42

Triggered via pull request December 17, 2024 08:58
Status Failure
Total duration 1m 6s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 6 warnings
src/Services/memberShipService.test.js > MembershipService > deve retornar o status correto ao criar uma filiação: src/Services/memberShipService.test.js#L27
TypeError: APIUsers.post.mockResolvedValueOnce is not a function ❯ src/Services/memberShipService.test.js:27:19
src/Services/memberShipService.test.js > MembershipService > deve retornar dados da filiação com base no status: src/Services/memberShipService.test.js#L39
TypeError: APIUsers.get.mockResolvedValueOnce is not a function ❯ src/Services/memberShipService.test.js:39:18
src/Services/memberShipService.test.js > MembershipService > deve retornar dados da filiação pelo ID: src/Services/memberShipService.test.js#L51
TypeError: APIUsers.get.mockResolvedValueOnce is not a function ❯ src/Services/memberShipService.test.js:51:18
src/Services/memberShipService.test.js > MembershipService > deve atualizar o status da filiação e retornar dados: src/Services/memberShipService.test.js#L61
TypeError: APIUsers.patch.mockResolvedValueOnce is not a function ❯ src/Services/memberShipService.test.js:61:20
src/Services/memberShipService.test.js > MembershipService > deve retornar false quando atualizar a filiação com sucesso: src/Services/memberShipService.test.js#L72
TypeError: APIUsers.patch.mockResolvedValueOnce is not a function ❯ src/Services/memberShipService.test.js:72:20
src/Services/memberShipService.test.js > MembershipService > deve retornar false ao deletar a filiação com sucesso: src/Services/memberShipService.test.js#L83
TypeError: APIUsers.delete.mockResolvedValueOnce is not a function ❯ src/Services/memberShipService.test.js:83:21
src/Services/memberShipService.test.js > MembershipService > deve retornar erro ao falhar no createMemberShip: src/Services/memberShipService.test.js#L93
TypeError: APIUsers.post.mockRejectedValueOnce is not a function ❯ src/Services/memberShipService.test.js:93:19
test
Process completed with exit code 1.
format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint: src/Pages/Protected/FinancialMovements/FinancialList/index.jsx#L47
React Hook useEffect has a missing dependency: 'storagedUser.token'. Either include it or remove the dependency array
lint: src/Pages/Protected/MembershipRequests/index.jsx#L45
React Hook useEffect has a missing dependency: 'members'. Either include it or remove the dependency array
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636