Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adiciona o teste para DarkModeEnabledContext #38

Merged
merged 8 commits into from
Feb 5, 2024

Conversation

leocpadua7
Copy link
Contributor

@leocpadua7 leocpadua7 commented Feb 2, 2024

Contexto

Esse PR adiciona testes simples para a lógica de estado e persistência do DarkModeEnabledContext.

Mudanças

Além do teste, fiz mais algumas configurações necessárias para rodar o teste corretamente e corrigir erros de TS.
Fiz também o mock do async storage para testar a persistência do tema.
E ajustei o workflow do CI para rodar os testes automatizado, após o lint

Como testar

Rode yarn test e confira se o teste passa corretamente

.github/workflows/lint-and-test.yml Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
@leocpadua7 leocpadua7 merged commit a6050e6 into master Feb 5, 2024
1 check passed
@leocpadua7 leocpadua7 deleted the add-darkmodecontext-test branch February 5, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants