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: add tests for composer.ts #400

Merged
merged 12 commits into from
Apr 22, 2023
Merged

test: add tests for composer.ts #400

merged 12 commits into from
Apr 22, 2023

Conversation

KnorpelSenf
Copy link
Member

@KnorpelSenf KnorpelSenf commented Mar 23, 2023

Tests matter

@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +3.36 🎉

Comparison is base (de1ec0c) 35.66% compared to head (7be3997) 39.03%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #400      +/-   ##
==========================================
+ Coverage   35.66%   39.03%   +3.36%     
==========================================
  Files          16       16              
  Lines        4809     4809              
  Branches      178      194      +16     
==========================================
+ Hits         1715     1877     +162     
+ Misses       3093     2930     -163     
- Partials        1        2       +1     
Impacted Files Coverage Δ
src/platform.deno.ts 90.90% <100.00%> (ø)

... and 1 file with indirect coverage changes

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

test/composer.test.ts Outdated Show resolved Hide resolved
test/deps.test.ts Outdated Show resolved Hide resolved
src/platform.deno.ts Outdated Show resolved Hide resolved
@KnorpelSenf
Copy link
Member Author

Need to investigate why CI fails.

node-fetch types were recently updated to add a non-standard required
property called `reson` to the AbortSignal type. to work around this,
we cast the AbortSignal to `any` before passing it to fetch
.vscode/settings.json Outdated Show resolved Hide resolved
src/core/client.ts Outdated Show resolved Hide resolved
test/composer.test.ts Show resolved Hide resolved
test/composer.test.ts Show resolved Hide resolved
@@ -26,9 +26,9 @@
"devDependencies": {
"@types/debug": "^4.1.7",
"@types/node": "^12.20.55",
"@types/node-fetch": "^2.6.2",
"@types/node-fetch": "2.6.2",
Copy link
Member

Choose a reason for hiding this comment

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

Why is the requirement changed for the types but not for the dependency itself? Shouldn’t be both or neither changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. The types are broken so we pin them for us until they're fixed. That doesn't mean we cannot permit library users to use newer versions.

package.json Show resolved Hide resolved
@KnorpelSenf KnorpelSenf dismissed EdJoPaTo’s stale review April 22, 2023 09:31

The changes were addressed

@KnorpelSenf KnorpelSenf merged commit a0f6776 into main Apr 22, 2023
@KnorpelSenf KnorpelSenf deleted the composer-tests branch April 22, 2023 09:31
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

4 participants