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

feat: increase test coverage #46

Merged
merged 42 commits into from
May 2, 2024
Merged

Conversation

marcomariscal
Copy link
Collaborator

@marcomariscal marcomariscal commented Mar 29, 2024

improves test coverage across the board.

the fetchJson func in setupTestEnv needs more coverage, but still have yet to figure out how to mock the global fetch func in bun, and/or figure out another way. this is why i've increased the coverage threshold to only .8, but wanting to get this to 1.

@marcomariscal marcomariscal marked this pull request as ready for review April 4, 2024 19:48
@marcomariscal marcomariscal linked an issue Apr 4, 2024 that may be closed by this pull request
1 task
Copy link
Member

@garyghayrat garyghayrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but don't merge yet

* fix: use beforeall

* fix: use beforeAll

* fix: use beforeAll

* fix: use beforeAll

* fix: use beforeAll

* fix: beforeAll

* chore: remove logs

* feat: large num of announcements to 100 for testing speed

* chore: spelling

* feat: biome for linting and formatting (#56)

* feat: biome

* chore: biome format

* chore: biome no trailing comma

* chore: format examples with biome

* chore: format

* feat: biome format

* feat: biome lint script

* feat: biome check

* fix: lint errors

* feat: remove lint since build already runs biome check

* chore: format

* feat: apply

* chore: import sort

* fix: use biome

* feat: deterministic gen stealth meta address (#60)

* fix: valid compressed key input type clarity

* fix: comment and variable clarity

* feat: get stealth meta address from keys

* feat: is valid pub key

* feat: is valid key tests

* feat: gen keys from sig

* chore: default export

* chore: fix import

* fix: test

* feat: extract portions into own func for testing

* feat: get stealth meta address from signature

* feat: test

* feat: example for gen stealth meta address from sig

* chore: lint

* fix: comment

* feat: change get to generate (verbiage)

* fix: generate verbiage

* chore: clean

* Update examples/generateDeterministicStealthMetaAddress/README.md

Co-authored-by: Gary Ghayrat <[email protected]>

* feat: send and receive test (#62)

* feat: handle just passing the stealth meta-address directly

* chore: format

* chore: format

* feat: send and receive test

* chore: format

* chore: comment

* chore: comment

* chore: clean

* chore: clean

* fix: just wait for the receipt

---------

Co-authored-by: Gary Ghayrat <[email protected]>

* fix: ci workflow for check

* fix: dont apply with check

* fix: check to end

* chore: check

---------

Co-authored-by: Gary Ghayrat <[email protected]>

---------

Co-authored-by: Gary Ghayrat <[email protected]>
@garyghayrat garyghayrat merged commit b8012ca into main May 2, 2024
4 checks passed
marcomariscal added a commit that referenced this pull request May 3, 2024
…#46)

* feat: improve coverage

* feat: coverage to .98

* package: update viem

* feat: large num of announcements to 100 for testing speed

* feat: biome for linting and formatting (#56)

* feat: deterministic gen stealth meta address (#60)

* fix: valid compressed key input type clarity

* feat: get stealth meta address from keys

* feat: is valid pub key

* feat: is valid key tests

* feat: gen keys from sig

* feat: extract portions into own func for testing

* feat: get stealth meta address from signature

* feat: example for gen stealth meta address from sig

* Update examples/generateDeterministicStealthMetaAddress/README.md

* feat: send and receive test (#62)

* feat: handle just passing the stealth meta-address directly

* feat: send and receive test

---------

Co-authored-by: Gary Ghayrat <[email protected]>
marcomariscal added a commit that referenced this pull request May 3, 2024
marcomariscal added a commit that referenced this pull request May 4, 2024
…#46)

* feat: improve coverage

* feat: coverage to .98

* package: update viem

* feat: large num of announcements to 100 for testing speed

* feat: biome for linting and formatting (#56)

* feat: deterministic gen stealth meta address (#60)

* fix: valid compressed key input type clarity

* feat: get stealth meta address from keys

* feat: is valid pub key

* feat: is valid key tests

* feat: gen keys from sig

* feat: extract portions into own func for testing

* feat: get stealth meta address from signature

* feat: example for gen stealth meta address from sig

* Update examples/generateDeterministicStealthMetaAddress/README.md

* feat: send and receive test (#62)

* feat: handle just passing the stealth meta-address directly

* feat: send and receive test

---------

Co-authored-by: Gary Ghayrat <[email protected]>
marcomariscal added a commit that referenced this pull request May 4, 2024
…#46)

* feat: improve coverage

* feat: coverage to .98

* package: update viem

* feat: large num of announcements to 100 for testing speed

* feat: biome for linting and formatting (#56)

* feat: deterministic gen stealth meta address (#60)

* fix: valid compressed key input type clarity

* feat: get stealth meta address from keys

* feat: is valid pub key

* feat: is valid key tests

* feat: gen keys from sig

* feat: extract portions into own func for testing

* feat: get stealth meta address from signature

* feat: example for gen stealth meta address from sig

* Update examples/generateDeterministicStealthMetaAddress/README.md

* feat: send and receive test (#62)

* feat: handle just passing the stealth meta-address directly

* feat: send and receive test

---------

Co-authored-by: Gary Ghayrat <[email protected]>
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.

Increase test coverage
2 participants