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

SSX Core Tests #31

Merged
merged 5 commits into from Dec 6, 2022
Merged

Conversation

Juliano1612
Copy link
Member

@Juliano1612 Juliano1612 commented Dec 5, 2022

This adds ssx-core tests with 99% coverage.

  • New feature (non-breaking change which adds functionality)
  • I have included unit tests
  • I have performed a self-review of my code
  • My changes generate no new warnings

@Juliano1612 Juliano1612 changed the title Add tests to ssx-core SSX Core tests Dec 5, 2022
@Juliano1612 Juliano1612 changed the title SSX Core tests SSX Core Tests Dec 5, 2022
@Juliano1612 Juliano1612 requested review from w4ll3, 44203 and skgbafa and removed request for 44203 and skgbafa December 6, 2022 13:32
@codecov-commenter
Copy link

Codecov Report

Base: 53.27% // Head: 56.69% // Increases project coverage by +3.42% 🎉

Coverage data is based on head (5254e71) compared to base (8e57269).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   53.27%   56.69%   +3.42%     
==========================================
  Files          22       22              
  Lines        2658     2658              
  Branches       52       87      +35     
==========================================
+ Hits         1416     1507      +91     
+ Misses       1242     1151      -91     
Impacted Files Coverage Δ
packages/ssx-core/src/server/utils.ts 95.23% <0.00%> (+45.23%) ⬆️
packages/ssx-core/src/utils.ts 94.73% <0.00%> (+63.15%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Juliano1612 Juliano1612 merged commit 745e1dd into spruceid:main Dec 6, 2022
skgbafa pushed a commit to skgbafa/ssx that referenced this pull request Dec 8, 2022
* Add tests to ssx-core

* Add tests to ssx-core server utils

* Mock axios
skgbafa added a commit that referenced this pull request Dec 8, 2022
* Connect to only unconnected wallets (#12)

* detect if account is already connected before prompting to connect

* add changeset

* bumped ssx to 0.1.1 (#18)

* SSX Public Release (#25)

* bring lockfile up to date

* Major bump all packages for public release

* Major bump for public release of SSX

* remove duplicate changelogs

* Create ssx-core and improve code quality (#26)

* Create ssx-core package, populate and update other packages

* Create a main  file to be extended by packages

* Optimize use of try/catch

* Update serverless example login return and make ssx-test-dapp compatible

* Add backwards types compatibility

* Add changelogs

* Add deprecation tags

* Update changelog

* Improve ssx-core docs

* Improve ssx-gnosis-extension's docs

* Improve ssx-react's docs

* Improve ssx-sdk's docs

* Improve ssx-server's docs

* Improve ssx-serverless's docs

* General docs updates

* added support for documentation generation to ssx-core + supporting script

* connect types from ssx-core to relying packages in documentation

* moved eslint config to monorepo

* airbnb-base rules update

* update lint dependencies

* moved .prettierrc to monorepo

* use monorepo eslint

* specify exported files

* Return after middleware response

Co-authored-by: Gregório Granado Magalhães <greg.magalhaes@gmail.com>

* Return response from middleware

Co-authored-by: Sam Gbafa <skgbafa@gmail.com>

* Remove console.error

Co-authored-by: Sam Gbafa <skgbafa@gmail.com>

* Remove console.error

Co-authored-by: Sam Gbafa <skgbafa@gmail.com>

* Remove redundant files

* Remove .npmignore

Co-authored-by: Samuel Gbafa <skgbafa@gmail.com>
Co-authored-by: Gregório Granado Magalhães <greg.magalhaes@gmail.com>

* Util: Toggle Local vs Published package version (#28)

* add initial script

* added write packages

* script working

* script cleanup

* added instructions + cleanup

* usage instructions

* Apply suggestions from code review

Co-authored-by: Juliano <julianocezargyn@hotmail.com>

Co-authored-by: Juliano <julianocezargyn@hotmail.com>

* Setup jest and add some tests (#27)

* Remove duplicated dependency

* Bump version

* Jest initial config

* Jest config

* Add base tests for all packages

* Test GH action and coverage badge

* Remove test from builld

* Fix coverage command

* Get coverage from sed

* Add tests

* Testing broken test

* Move test command out of echo

* Fix test and update build action

* Move to codecov

* Update CI

* Remove badge from template

* Remove extra action and consolidate under build

* Update coverage badge

Co-authored-by: Juliano <julianocezargyn@hotmail.com>
Co-authored-by: Sam Gbafa <skgbafa@gmail.com>

* Update ssxConfig (#32)

* Update ssxConfig

* whitespace

* SSX Server Tests (#30)

* Remove duplicated dependency

* Bump version

* Jest initial config

* Jest config

* Add base tests for all packages

* Test GH action and coverage badge

* Remove test from builld

* Fix coverage command

* Get coverage from sed

* Add tests

* Testing broken test

* Move test command out of echo

* Fix test and update build action

* Move to codecov

* Update CI

* Remove badge from template

* Remove extra action and consolidate under build

* Update coverage badge

* Add tests to ssx-server

* Add express middleware tests

* Add http middleware tests

Co-authored-by: Juliano <juliano.cezar@spruceid.com>

* SSX Serverless Tests (#33)

* Add tests to ssx-serverless

* Update resolveEns test timeout

* SSX Core Tests (#31)

* Add tests to ssx-core

* Add tests to ssx-core server utils

* Mock axios

* Export SIWE (#35)

* added siwe export

* added changeset changelog

* lint

* SSX React: Add additional provider options (#34)

* add additional provider options

* wagmi react example moved to use new api

* added onboard react dapp

* updated example dapp names

* lint

* linter

* added changeset changelog

* renamed packages to match folder

* improved getting started documentation

* remove lockfiles from example

* remove extra files

* Enable custom paths for endpoints (#36)

* Updates interfaces to support custom endpoints

* Updates ssx-sdk to accept an endpoint config

* Updates ssx-server middlewares to customize endpoints

* Add changelog

* Add tests

* Renames 'endpoints' to 'routes' and updates tests

Co-authored-by: Sam Gbafa <skgbafa@gmail.com>

* Run Linter Changes (#37)

* linter updates

* fix name

* Fix Dependabot Warnings (#41)

* remove package

* dependabot suggestions

* Bump simple-git from 3.14.1 to 3.15.1

* Bump decode-uri-component from 0.2.0 to 0.2.2

* ensure correct version resolved

* update parent of bad tar@2.0.0 dep

* SSX v1.1.0 (#38)

* run changeset version

* update dependency versions

* updated changelogs

* update ssx-serverless changelog

* update package version

* changelog update

* use correct versions in changelogs

* rerun documentation

Co-authored-by: Juliano <juliano.cezar@spruceid.com>
Co-authored-by: Gregório Granado Magalhães <greg.magalhaes@gmail.com>
Co-authored-by: Juliano <julianocezargyn@hotmail.com>
@Juliano1612 Juliano1612 deleted the feat/ssx-core-tests branch December 19, 2022 16:28
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.

None yet

5 participants