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

test(setup): add jest, configure for next.js + typescript #30

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

kahboom
Copy link
Collaborator

@kahboom kahboom commented Mar 8, 2024

This PR sets up Jest (unit testing framework) for Next.js and TS, along with code coverage and code reports. Adds a couple of smoke tests and basic unit tests.

Changes

  • Adds & configures Jest
  • Adds a few smoke tests and basic unit tests
  • Adds CI/CD GitHub workflow to run tests

@kahboom kahboom marked this pull request as ready for review March 19, 2024 14:26
chore(test): add file and style mocks

chore: add linting for tests

test(unit): add basic unit tests for DSSE + search form

fix(test): update types

fix: add mock for TextEncoder, TextDecoder

test(unit): fix DSSE + Explorer tests, add mocks

update mock for decodex509 function
@kahboom kahboom merged commit 0ef4390 into securesign:main Mar 19, 2024
8 of 9 checks passed
@kahboom kahboom deleted the unit-test-setup branch March 19, 2024 15:48
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.

1 participant