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

Add missing unit tests and use Typescript also for test #630

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jul 7, 2023

Adding missing unit tests for the Proxy- and SimpleBus.
Also the getBus() was not tested if there is no window or an old bus, added tests for this case (100% code coverage of index.ts).

Also configured jest to work with Typescript tests.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

❗ No coverage uploaded for pull request base (master@f0e9195). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             master      #630   +/-   ##
==========================================
  Coverage          ?   100.00%           
==========================================
  Files             ?         3           
  Lines             ?        44           
  Branches          ?         7           
==========================================
  Hits              ?        44           
  Misses            ?         0           
  Partials          ?         0           

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

@@ -2,12 +2,14 @@
"include": ["./lib/**/*.ts"],
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm so lost with all our tsconfigs and various changes 😭

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without this jest would not be able to import semver/valid :/

@skjnldsv skjnldsv merged commit 2ef9ed4 into master Jul 7, 2023
@delete-merged-branch delete-merged-branch bot deleted the feat/more-unittests-code-coverage branch July 7, 2023 16:32
@skjnldsv skjnldsv mentioned this pull request Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants