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: added minimal pubsub implementation #54

Merged
merged 1 commit into from
Aug 22, 2022
Merged

feat: added minimal pubsub implementation #54

merged 1 commit into from
Aug 22, 2022

Conversation

mattayres
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2022

Codecov Report

Merging #54 (ec90fff) into main (249aa0d) will decrease coverage by 0.12%.
The diff coverage is 90.40%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   91.93%   91.81%   -0.13%     
==========================================
  Files           7        8       +1     
  Lines        1687     1808     +121     
  Branches      252      268      +16     
==========================================
+ Hits         1551     1660     +109     
- Misses        135      147      +12     
  Partials        1        1              
Impacted Files Coverage Δ
src/db.ts 91.70% <80.95%> (-1.30%) ⬇️
src/topic.ts 91.75% <91.75%> (ø)
src/types.ts 94.58% <100.00%> (+0.08%) ⬆️

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

src/topic.ts Outdated Show resolved Hide resolved
src/topic.ts Outdated Show resolved Hide resolved
src/topic.ts Outdated Show resolved Hide resolved
src/db.ts Show resolved Hide resolved
src/topic.ts Outdated
onError(error: Error): void;
}

export class Topic<T extends TigrisCollectionType> {
Copy link
Contributor

Choose a reason for hiding this comment

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

please add test to cover this.

@mattayres mattayres force-pushed the pubsub_init branch 2 times, most recently from ec90fff to e68b4a4 Compare August 22, 2022 18:55
done();
},
onEnd() {
// not expected to be called
Copy link
Contributor

@JigarJoshi JigarJoshi Aug 22, 2022

Choose a reason for hiding this comment

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

nit: should we put fail() here to get tighter grip?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've tried to add this before, it hits this bug: jestjs/jest#11698

@mattayres mattayres merged commit 877e263 into main Aug 22, 2022
@mattayres mattayres deleted the pubsub_init branch August 22, 2022 22:54
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants